Req8: Use [ ] for arrays

[This post is part of a series, "wish-list for future versions of VB"]

 

IDEA: Use [ ] for arrays. This suggestion came from Bill McCarthy. He writes that it's hard to tell the difference between array-indexing and other uses of parentheses. We could allow [] for arrays, or have some other visual differentiation in the IDE. For consistency reasons we'd also have to do it for property parameters. (Also that would remove the user-confusion about how property args are always passed ByVal even though declared ByRef).

 

Evaluation from VB team: This would be better done by an IDE plugin, rather than by changing the syntax of the language. Now that VS2010 has moved the IDE to WPF, a lot more of these kinds of plugins are possible, and they'll become drastically easier once our "compiler-as-a-service" features progress.