Multiline comments

Topics: VB Language Design
Apr 16, 2014 at 9:53 AM
Already in C#, would be nice to use / ... / syntax in VB too.
Coordinator
Apr 17, 2014 at 12:20 AM
Hey Levente,

As language designers we don't feel that it's responsible to add language features to one language purely because they're in the other. Also, we don't just reuse syntax between the languages because it's convenient - each language must stand on its own as a coherent and consistent work stylistically. Each language has their development history and the great thing about having VB and C# and F# is that we can learn from each language. It's been my experience that multiline comments are never used in C# code (OK, maybe just very rarely). That combined with the fundamentally line oriented nature of the language itself and our (bad) tooling experiences with inline/multiline strings in C# has made us very reluctant to add this feature to VB. Today the IDE supports commenting multiple statements through the "Comment Selection" command (Ctrl+K, Ctrl+C). Between that command, the newly added ability for comments to appear after implicit line continuation, and some other features we've discussed with regard to named arguments we think we can address most of the high value scenarios without adding significant complexity to the language or ecosystem. Of course as always if a new scenarios come to our attention that are important enough we can always revisit this decision later.

Regards,

Anthony D. Green, Program Manager, Visual Basic & C# Languages Team
Marked as answer by TomasMatousek on 4/18/2014 at 8:33 PM