Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

In .NET environment, can I say these two languages are same powerful?

 

I found that most of Microsoft guys use C# rather than VB, is it C# can do something VB cannot? or other reason?

  • Leaders
Posted
While there are certain language specific things supported in each like operator overloading in C#, I'm pretty sure they are equals in that they both sit on the same framework and therefore have the same power exposed to them. I think language choice is purely what one feels comfortable with and it just happens that the MS guys are more comfortable with C#. If my customer didn't specify VB, I'd be coding in C# right now too just because I like the C# syntax much better than VB.
--tim
  • Leaders
Posted
I did read somewhere that C# is 3 to 10% faster in some case than VB.NET.

I, perhaps naively, don't understand how that could be. Since they compile down to the same CIL code, it seems like they should be the same. Of course my simple understanding assumes that the compiler for C# and VB.NET are equally well-written. I think I've even seen a demo where the same program was written in both languages and when they pulled up the CIL code it was the same. Could be mistaken though, as I don't claim to fully understand the world of runtimes and virtual machines

--tim

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...