Bonj said:
is it not also the case that VB.NET has simply *more* functions than C# has?
Looking in the SDK documentation it looks like they were the ones provided
to help VB6 users migrate - Shell for instance, VB.NET seems to have it but
C# doesn't (whereas C# would use Process.Start)
I think it's also clear that C# is the 'intended' language to compile to
MSIL, VB.NET seems to be just a VB6-like syntax wrapper round it...
[snipped]
A good observation, but I was referring to simpler constructs where more
even comparisons might be made. But you are correct that many VB.NET "ways"
are perhaps generally just plain "wordier" than similar C# constructs. But
even that gets confusing since several VB-leaning friends have demostrated
to me that often what appears as more VB code 'compiles' to a more compact
C#-like version in IL.
It also doesn't take long when directly working with the IL to appreciate
that neither VB.NET or C# truly utilizes all the capablities of the IL. Most
of the new language features that are coming with W'mb aren't based on a new
IL, just better exploitation of what is already available.
Which is leads to an interesting cottage industry which is cropping up -
writing a program/routine in either VB.NET or C#, then opening the IL and
tweaking it. While many of the practictioners believe this to be an original
idea, it is almost exactly what we use to do 20 years ago in C. Write the
basic routine in C, then dump the assembly, tweak it, then include the new
code as an _asm instruction or as a separate library. It seemed like a nifty
idea at the time - but ghod help the poor maintainer than came behind you.
<g>
I believe your observation that VB.NET does tend to maintain a VB-ness to it
is correct and deliberate, and believe this trend will continue. Just as it
is more likely that C# will evolve to a more direct exploitation of the IL.
That is why I felt the need to comment on the "identical" IL issue. It isn't
true now and will likely be even less true with W'mb. (Then we get a whole
new round of language wars. <smile>)
But that is only an opinion and I am often wrong.
-ralph