Search code examples
c#vb.netprogramming-languages

case-sensitive languages vs insensitive languages?


visual basic.net is case insensitive so it allows the coder to write without caring or remembering the casing of variables. it also relieves from the 'undeclared variable' errors if you use the variable in another case than the one used in declaration. The fact that its line termination is a line feed makes it even more readable unlike C# or c++ that need good care in the casing and contineous war with following up with the {}, matching them and figuring out which is for which.

my question is what are the advantages of c# over vb knowing that both get compiled to MSIL so there is almost no performance difference between the two languages?


Solution

  • In the case of Visual Basic and C#. There is no real performance difference. But I know a lot of people, and I can conclude that people prefer C# when they learned the language C/C++ first. And people prefer Visual Basic when they learned Pascal First. It's just the syntax.