<?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>Power7: Dictionary and list literals</title><link>http://blogs.msdn.com/b/lucian/archive/2010/02/11/power7-dictionary-and-list-literals.aspx</link><description>[This post is part of a series, " wish-list for future versions of VB "] 
 
 IDEA: Dictionary literals. You should be able to write a dictionary initializer with an easier syntax. Moreover, if the user didn't specify the type of the dictionary, then</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Power7: Dictionary and list literals</title><link>http://blogs.msdn.com/b/lucian/archive/2010/02/11/power7-dictionary-and-list-literals.aspx#10114554</link><pubDate>Wed, 12 Jan 2011 08:32:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10114554</guid><dc:creator>Shimmy Weitzhandler</dc:creator><description>&lt;p&gt;First idea: I like it but I think it&amp;#39;s too late.&lt;/p&gt;
&lt;p&gt;Second idea: I do think it&amp;#39;s compelling, but why not just have an IEnumarable(Of T) constructor-parameter so it ports it to this one&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10114554" width="1" height="1"&gt;</description></item><item><title>re: Power7: Dictionary and list literals</title><link>http://blogs.msdn.com/b/lucian/archive/2010/02/11/power7-dictionary-and-list-literals.aspx#9975249</link><pubDate>Tue, 09 Mar 2010 03:19:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9975249</guid><dc:creator>Kyralessa</dc:creator><description>&lt;p&gt;I like these ideas. &amp;nbsp;They save typing but are still easy to understand at first glance.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9975249" width="1" height="1"&gt;</description></item><item><title>re: Power7: Dictionary and list literals</title><link>http://blogs.msdn.com/b/lucian/archive/2010/02/11/power7-dictionary-and-list-literals.aspx#9962236</link><pubDate>Thu, 11 Feb 2010 21:08:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9962236</guid><dc:creator>Đonny</dc:creator><description>&lt;p&gt;I like both ideas - dictionary initializers and list initializers.&lt;/p&gt;
&lt;p&gt;One more idea, scenario I often miss, is less verbose possibility to initialize array or list of any non-abstract type. Imagine this:&lt;/p&gt;
&lt;p&gt;Public Class SomeClass&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Public Sub New (ByVal a As Integer, ByVal b As String, ByVal c as Char)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;End Sub&lt;/p&gt;
&lt;p&gt;End Class&lt;/p&gt;
&lt;p&gt;Dim arr As SomeClass() = {New SomeClass(7, &amp;quot;7&amp;quot;, &amp;quot;7&amp;quot;c), New SomeClass(0, &amp;quot;0&amp;quot;, &amp;quot;0&amp;quot;c), New SomeClass(66, &amp;quot;xx&amp;quot;, &amp;quot;*&amp;quot;c)}&lt;/p&gt;
&lt;p&gt;Would it be nice to type something shorter instead, like:&lt;/p&gt;
&lt;p&gt;Dim arr As SomeClass() = {{7, &amp;quot;7&amp;quot;, &amp;quot;7&amp;quot;c}, {0, &amp;quot;0&amp;quot;, &amp;quot;0&amp;quot;c}, {66, &amp;quot;xx&amp;quot;, &amp;quot;*&amp;quot;c}}&lt;/p&gt;
&lt;p&gt;?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9962236" width="1" height="1"&gt;</description></item></channel></rss>