<?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: AS4 Feature proposal: Type inference</title>
	<atom:link href="http://www.davidarno.org/2010/02/22/as4-feature-proposal-type-inference/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.davidarno.org/2010/02/22/as4-feature-proposal-type-inference/</link>
	<description></description>
	<lastBuildDate>Tue, 07 Feb 2012 22:10:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Robert Penner</title>
		<link>http://www.davidarno.org/2010/02/22/as4-feature-proposal-type-inference/comment-page-1/#comment-3321</link>
		<dc:creator>Robert Penner</dc:creator>
		<pubDate>Wed, 24 Feb 2010 19:40:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidarno.org/?p=1120#comment-3321</guid>
		<description>David,
I agree completely. Nice examples.</description>
		<content:encoded><![CDATA[<p>David,<br />
I agree completely. Nice examples.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Arno</title>
		<link>http://www.davidarno.org/2010/02/22/as4-feature-proposal-type-inference/comment-page-1/#comment-3296</link>
		<dc:creator>David Arno</dc:creator>
		<pubDate>Tue, 23 Feb 2010 12:46:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidarno.org/?p=1120#comment-3296</guid>
		<description>@Mnem,

Interfaces and base classes are dealt with just as your code shows: explicitly. If your two lines instead read:

var a = new MyThingWithFoo();
var b = new MySpecialIckleSprite();

then the compiler would infer that a should be of type MyThingWithFoo and b of type MySpecialIckleSprite. To override this inference in order to explicitly make the variables by of interface or base class types, then the variable&#039;s type would still be explicitly specified using existing syntax.</description>
		<content:encoded><![CDATA[<p>@Mnem,</p>
<p>Interfaces and base classes are dealt with just as your code shows: explicitly. If your two lines instead read:</p>
<p>var a = new MyThingWithFoo();<br />
var b = new MySpecialIckleSprite();</p>
<p>then the compiler would infer that a should be of type MyThingWithFoo and b of type MySpecialIckleSprite. To override this inference in order to explicitly make the variables by of interface or base class types, then the variable&#8217;s type would still be explicitly specified using existing syntax.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mnem</title>
		<link>http://www.davidarno.org/2010/02/22/as4-feature-proposal-type-inference/comment-page-1/#comment-3287</link>
		<dc:creator>Mnem</dc:creator>
		<pubDate>Mon, 22 Feb 2010 14:01:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidarno.org/?p=1120#comment-3287</guid>
		<description>Interesting idea. As a slightly old skool programmer, inference scares me because I don&#039;t trust compilers ;)

However, if I look past my paranoia, I suspect this could actually strengthen the typing in an average AS program &#039;cause the compiler would start enforcing types after they had been first set.

How do you see interfaces or base classes being dealt with? So things like:

var a :IFoo = new MyThingWithFoo();
var b :Sprite = new MySpecialIckleSprite();</description>
		<content:encoded><![CDATA[<p>Interesting idea. As a slightly old skool programmer, inference scares me because I don&#8217;t trust compilers <img src='http://www.davidarno.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>However, if I look past my paranoia, I suspect this could actually strengthen the typing in an average AS program &#8217;cause the compiler would start enforcing types after they had been first set.</p>
<p>How do you see interfaces or base classes being dealt with? So things like:</p>
<p>var a :IFoo = new MyThingWithFoo();<br />
var b :Sprite = new MySpecialIckleSprite();</p>
]]></content:encoded>
	</item>
</channel>
</rss>

