<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Syntactic sugar and Java arrays.</title>
	<atom:link href="http://en.newinstance.it/2010/01/08/syntactic-sugar-and-java-arrays/feed/" rel="self" type="application/rss+xml" />
	<link>http://en.newinstance.it/2010/01/08/syntactic-sugar-and-java-arrays/</link>
	<description>Welcome to the official blog of Luigi R. Viggiano. Beware of imitations.</description>
	<lastBuildDate>Fri, 13 Jan 2012 02:25:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Luigi</title>
		<link>http://en.newinstance.it/2010/01/08/syntactic-sugar-and-java-arrays/comment-page-1/#comment-389807</link>
		<dc:creator>Luigi</dc:creator>
		<pubDate>Fri, 16 Apr 2010 14:34:42 +0000</pubDate>
		<guid isPermaLink="false">http://en.newinstance.it/2010/01/08/syntactic-sugar-and-java-arrays/#comment-389807</guid>
		<description>I am just saying that there&#039;s no logical reason why that shouldn&#039;t compile.

&gt;why should he know it’s a string array in the first place?
&gt; ...
&gt;but how should he know, that what you are giving in is really such a type

exactly as the compiler does for the assignation (without needing any cast): 

String[] strings = { &quot;foo&quot;, &quot;bar&quot; };


</description>
		<content:encoded><![CDATA[<p>I am just saying that there&#8217;s no logical reason why that shouldn&#8217;t compile.</p>
<p>>why should he know it’s a string array in the first place?<br />
> &#8230;<br />
>but how should he know, that what you are giving in is really such a type</p>
<p>exactly as the compiler does for the assignation (without needing any cast): </p>
<p>String[] strings = { &#8220;foo&#8221;, &#8220;bar&#8221; };</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jan</title>
		<link>http://en.newinstance.it/2010/01/08/syntactic-sugar-and-java-arrays/comment-page-1/#comment-382341</link>
		<dc:creator>jan</dc:creator>
		<pubDate>Wed, 17 Feb 2010 22:21:13 +0000</pubDate>
		<guid isPermaLink="false">http://en.newinstance.it/2010/01/08/syntactic-sugar-and-java-arrays/#comment-382341</guid>
		<description>sure it is not valid...try the following:
     doSomething(new String[] {&quot;foo&quot;,&quot;bar&quot;});

why should he know it&#039;s a string array in the first place? ok it&#039;s defined by the method doSomething...but how should he know, that what you are giving in is really such a type :)</description>
		<content:encoded><![CDATA[<p>sure it is not valid&#8230;try the following:<br />
     doSomething(new String[] {&#8220;foo&#8221;,&#8221;bar&#8221;});</p>
<p>why should he know it&#8217;s a string array in the first place? ok it&#8217;s defined by the method doSomething&#8230;but how should he know, that what you are giving in is really such a type :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

