Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cost for .Net
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00609123
Message ID:
00618752
Views:
16
The thing I was trying to compare syntax. By default, VB does not add the namespace wrapper and C# does. To be honest, that was not the primary thing I was comparing.

Instead, I was trying to stress was the declarative nature of VB over the cryptic nature of C#. For example:
Dim x As Integer

vs

int x;
I like the former..

or
If nCnt <= nMax Then
   nTotal += nCnt  
   nCnt += 1      
Else
   nTotal += nCnt
   nCnt -= 1       
End If

vs

if (nCnt <= nMax)
{
   nTotal += nCnt;
   nCnt++;
}
else
{
   nTotal +=nCnt;
   nCnt--;
}
Again, I'll choose the former..

I hate the curly braces and the fact that semi colon line termination is required.

Is it THAT big a deal???? In the end it is not. It is simply a preference. If I had to use C#, I would and could. Given the choice, I would use VB.

My big point is this: VB is as legitimate of a .NET programming language as C# and that for the most part, the developer who chooses VB is not at a material disadvantage.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform