D's auto keyword
Nick Sabalausky
a at a.a
Wed Jan 13 15:01:08 PST 2010
"Lutger" <lutger.blijdestijn at gmail.com> wrote in message
news:hilifj$7u7$1 at digitalmars.com...
> On 01/13/2010 10:22 PM, Nick Sabalausky wrote:
>> "Lutger"<lutger.blijdestijn at gmail.com> wrote in message
>> news:hil6gr$2hmn$1 at digitalmars.com...
>>>
>>> All ML derived languages do this much more extensively and they even
>>> don't
>>> need an auto keyword for it. C# has var and VB.NET has Dim which mean
>>> the
>>> same thing. The nice thing with those languages is that if you code in
>>> Visual Studio, you only have to hover above the variabele and the type
>>> pops up. Most IDE's have this btw, including descent, so that takes away
>>> the concern of having to remember the flow of types inferred.
>>
>> Doesn't "Dim" (without an "As" clause) declare a variant rather than a
>> compile-time-inferred static type? Or did that change in VB.NET?
>>
>>
>
> What MS did was basically just drop Visual Basic, lot's of rusty coders
> lost their job because of it.
Well, from what I've seen from various co-workers, anyone who could only do
VB wasn't much of a programmer to begin with.
> VB.NET is C# dressed up to look like that dying dynamic scripting language
> with a similar name.
> It is a different language altogether though
Oh yea, I knew that, I just didn't realize that "Dim" without "As" has
become an "auto"-like thing.
More information about the Digitalmars-d
mailing list