* "Tim Anderson" <ti*****@hotmail.com> scripsit:
Does anyone else think VB should support the // prefix for comments? I keep
using it by accident, because so many other languages use it (unlike the
single quote, which is I believe unique to VB).
If you think VB would be improved by this change, please vote on my
suggestion here:
http://lab.msdn.microsoft.com/Produc...ckId=FDBK15038
I voted against this suggestion. In VB.NET, there are already two ways
of starting comments, ''' and 'Rem', and in VB 2005, ''''' for XML
comments. I am strongly against a change of this scheme. Comment
blocks would be nice, but I currently do not have an idea about how to
add them to the language without producing ASCII art ('/*...*/' is
horrible).
What I can think of is an automatical replacement of '//', that turns
'//' into '''. This would keep the language syntax clean and would help
C* programmers to switch to VB.NET.
It's interesting that, as a VB programmer, I never had any problems with
C* languages. There is nothing simpler than remembering the comment
character.
'//' does not fit into the scheme used to choose keywords in VB. It's
ASCII art.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>