"ozbear" <
XXXX@XXXXX.COM>writes
Quote
On 16 Oct 2004 14:44:34 -0700, "Nick Hodges [TeamB]"
<XXXX@XXXXX.COM>writes:
>ozbear writes:
>
>>Each by itself is minor,
>>but they all add up.
>
>True, but this is still Delphi, not "ex-VB".
But part of the "crusade" is to acquire new Dephi users and
there are a lot of VB'ers out there, both ex- and practising.
You always want ideas....one of mine is " make the transition
as seamless as possible".
Exactly, and this is a requirement or they will not come in any numbers.
That dose *not* mean making Delphi over in VB's image. I have posted earlier
about the complete and absolute lack of clues for VB(Visual Basic) knowledgeable people.
Using Delphi Help, try converting the following code:
Public Sub HelloDelphi()
MsgBox "Hello Delphi"
End Sub
Quote
>>I also have my doubts that "lots" of user code out there in the Real
>>World employs "foreach" but your data may be better than mine.
>
>I agree -- I don't know if its "some", "a few", or "Lots". Well, it is
>certainly "some", meaning "more than one". Clearly, adding a keyword
>breaks /someone's/ code, and I personally try not to take the "well, as
>long as it doesn't break my code, I don't care attitude". I know
>Borland doesn't take that view -- hence, no new keywords, and, in my
>view, an elegant, intuitive solution.
I would agree with you that introducing new keywords in Delphi always
introduces the potential of breaking extant code.
First, I don't think the key to the issue is to try to introduce a lot of
new keywords.
Having said that, new keywords (provided they are created in the spirit of
the core language) are a GoodThing. The *bad* thing is to change existing
keywords or behavior. In fact, that is precisely why you will find VB(Visual Basic) users
interested in Delphi. They will *not* want Delphi to change in ways that
break existing code because that is the precise mindset they're trying to get
away from.
They (me anyway) will be interested in keeping some of the useful features
of VB, but that doesn't mean they need be implemented in the same way.
I'll give you a good example: When I am working on a new I dea I like being
able to code new fragments without having my thoughts distracted by having
to go to the top to declare variables. VB(Visual Basic) handles this by allowing us to
use undeclared variables with explicit data types (then declare them later).
It appears Diamondback would give me this same "feature" by using automatic
declaration insertion... same end result, I can code pretty much without
distraction. It would also be cool if I could define the data type using
some clue in the variable name so the automatic declaration would be
unambiguous. Poof, problem solved with *no* change in Delphi using a
feature that can be made optional to the user.
Now, what if Diamondback would take MyInt% and change it to MyInt (as
integer) and insert the declaration? You wouldn't even notice... VB(Visual Basic) folks
would.
Dan