<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Req8: Use [ ] for arrays</title><link>http://blogs.msdn.com/b/lucian/archive/2010/02/13/req8-use-for-arrays.aspx</link><description>[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</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Req8: Use [ ] for arrays</title><link>http://blogs.msdn.com/b/lucian/archive/2010/02/13/req8-use-for-arrays.aspx#10114567</link><pubDate>Wed, 12 Jan 2011 08:48:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10114567</guid><dc:creator>Shimmy Weitzhandler</dc:creator><description>&lt;p&gt;NO NO NO NO NO NO NO&lt;/p&gt;
&lt;p&gt;Stick to () and don&amp;#39;t get confused from C#!!!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10114567" width="1" height="1"&gt;</description></item><item><title>re: Req8: Use [ ] for arrays</title><link>http://blogs.msdn.com/b/lucian/archive/2010/02/13/req8-use-for-arrays.aspx#9975301</link><pubDate>Tue, 09 Mar 2010 05:31:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9975301</guid><dc:creator>Robert</dc:creator><description>&lt;p&gt;Dave R:&lt;/p&gt;
&lt;p&gt;I like VB and I'd very much like to use [] for indexing. In my opinion, () is overused already, with it being used for changing the evaluation order of expressions, generics, indexing and function calls. At least generics have the Of keyword to differntiate them.&lt;/p&gt;
&lt;p&gt;If you came across Aaa(0).Bbb(1).Ccc(2)(3), you can't tell from a glance which ones are array/property accesses or function calls.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9975301" width="1" height="1"&gt;</description></item><item><title>re: Req8: Use [ ] for arrays</title><link>http://blogs.msdn.com/b/lucian/archive/2010/02/13/req8-use-for-arrays.aspx#9969200</link><pubDate>Thu, 25 Feb 2010 11:50:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9969200</guid><dc:creator>Richard</dc:creator><description>&lt;p&gt;I don't find it confusing or hard to tell the difference. &amp;nbsp;I think () is perfectly adequate. &amp;nbsp;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9969200" width="1" height="1"&gt;</description></item><item><title>re: Req8: Use [ ] for arrays</title><link>http://blogs.msdn.com/b/lucian/archive/2010/02/13/req8-use-for-arrays.aspx#9964025</link><pubDate>Tue, 16 Feb 2010 03:40:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9964025</guid><dc:creator>Kevin Ryall</dc:creator><description>&lt;p&gt;As with separate assignment and equality operators, this would undoubtedly make code clearer, but again is probably not worth implementing considering the confusion it would lead to (assuming both syntaxes would have to be supported indefinitely). &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9964025" width="1" height="1"&gt;</description></item><item><title>re: Req8: Use [ ] for arrays</title><link>http://blogs.msdn.com/b/lucian/archive/2010/02/13/req8-use-for-arrays.aspx#9963342</link><pubDate>Sun, 14 Feb 2010 21:07:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9963342</guid><dc:creator>Đonny</dc:creator><description>&lt;p&gt;First I must say that I'm against this feature. [] are not on Czech keyboard ;-). But imagine this&lt;/p&gt;
&lt;p&gt;Function GetArray() As Integer()&lt;/p&gt;
&lt;p&gt;Function GetArray(param As Integer) As Integer()&lt;/p&gt;
&lt;p&gt;Dim x = GetArray(5) 'What does this do?&lt;/p&gt;
&lt;p&gt;[] Can avoid some confusion.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9963342" width="1" height="1"&gt;</description></item><item><title>re: Req8: Use [ ] for arrays</title><link>http://blogs.msdn.com/b/lucian/archive/2010/02/13/req8-use-for-arrays.aspx#9963099</link><pubDate>Sat, 13 Feb 2010 16:30:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9963099</guid><dc:creator>Dave R</dc:creator><description>&lt;p&gt;Are you sure you suggestion box is coming from people who actually like VB, not some C# and Java types who had to write VB code grudgingly? I mean, suggesting [] for arrays, separate equality and assignment operators, all sorts of funky syntax (two rules for adding new punctuation to VB - rule 1: Only do it if you really, really have to. rule 2: You don't really have to.) , getting rid of the block end statements that massively improve readability and are always written by the IDE anyway... that ain't VB. That's C# without semicolons.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9963099" width="1" height="1"&gt;</description></item></channel></rss>