c# vs VB.net

  • Thread starter Thread starter vijaya
  • Start date Start date
V

vijaya

I'm a newbie to .net

Is it true that C#.net code executes faster than VB.net?

Which one is superior?

I need few good links regarding this issue.
 
This is not true. VB.NET and C# compile both to the same IL that is executed
by the .NET Framework. No language is superior in my opinion, both have more
or less the same functionality.

--
Greetz

Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan
 
vijaya said:
I'm a newbie to .net

Is it true that C#.net code executes faster than VB.net?

No - not if you use VB.NET appropriately rather than with option strict
off, etc. There are some ways in which VB.NET might be a tiny, tiny bit
slower (e.g. keeping track of the last error) but nothing significant
at all.
Which one is superior?

That depends on which syntax you prefer, really.
I need few good links regarding this issue.

If you search on groups.google.com you'll see *lots* of discussions
about that.
 
Yes and no. If you compile VB.NET with OPtion Strict ON, then no, it's not
true. There may be an instance occassionally where one is faster than the
other, but it's very rare and not slanted only in C#'s favor. If you have
Options Strict Off (aka, Option Slow On) then it will almost certainly run
slower. I don't think c# even lets you turn it off... but if it is, it's
not an apples to apples comparison and it has nothing to do with VB.NET
beign slower.

Learn them both. C# vs. VB.NET is the most insipid discussion there is, if
everyone spent as much time learning .NET instead of having this
argument.....

Learn .NET that's what matters. Top Notch C# programmers can learn VB.NET
in a week or two. Same in reverse. HOwever, Top Notch VB6 and C++
programmers will have to put in a few good months to reallly learn .NET.

So to heck with Syntax. Also, in the future, the differences between the
two will grow but they will still be able to do jsut about everything the
other one will....Learn them both.

HTH,

Bill
 
Back
Top