<?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: why are anonymous closures so ugly in as3?</title>
	<atom:link href="http://joshua.almirun.com/tech/ria/flash/why-are-anonymous-closures-so-ugly-in-as3/feed" rel="self" type="application/rss+xml" />
	<link>http://joshua.almirun.com/tech/ria/flash/why-are-anonymous-closures-so-ugly-in-as3</link>
	<description>technology, politics, armchair philosophy</description>
	<lastBuildDate>Tue, 19 Jan 2010 13:36:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Joshua Mostafa</title>
		<link>http://joshua.almirun.com/tech/ria/flash/why-are-anonymous-closures-so-ugly-in-as3/comment-page-1#comment-248</link>
		<dc:creator>Joshua Mostafa</dc:creator>
		<pubDate>Mon, 07 Apr 2008 23:56:42 +0000</pubDate>
		<guid isPermaLink="false">http://joshua.almirun.com/tech/ria/flash/why-are-anonymous-closures-so-ugly-in-as3#comment-248</guid>
		<description>Thanks for the link to your post, Daniel. A very interesting read!

Josh</description>
		<content:encoded><![CDATA[<p>Thanks for the link to your post, Daniel. A very interesting read!</p>
<p>Josh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Gasienica</title>
		<link>http://joshua.almirun.com/tech/ria/flash/why-are-anonymous-closures-so-ugly-in-as3/comment-page-1#comment-233</link>
		<dc:creator>Daniel Gasienica</dc:creator>
		<pubDate>Mon, 07 Apr 2008 13:18:25 +0000</pubDate>
		<guid isPermaLink="false">http://joshua.almirun.com/tech/ria/flash/why-are-anonymous-closures-so-ugly-in-as3#comment-233</guid>
		<description>Joshua,

I totally agree with you. However, there are at least two workarounds for this:
(1) Use a wrapper function. Find out how on my blog:
http://gasi.ch/blog/functional-actionscript-part-2/#wrap

(2) Even more pragmatic is the following method suggested by Theo from Iconara: Use ActionScript&#039;s ...rest argument

function( item : *, â€¦ignored ) : * {
   // do the magic
}

Regards,
Daniel</description>
		<content:encoded><![CDATA[<p>Joshua,</p>
<p>I totally agree with you. However, there are at least two workarounds for this:<br />
(1) Use a wrapper function. Find out how on my blog:<br />
<a href="http://gasi.ch/blog/functional-actionscript-part-2/#wrap" rel="nofollow">http://gasi.ch/blog/functional-actionscript-part-2/#wrap</a></p>
<p>(2) Even more pragmatic is the following method suggested by Theo from Iconara: Use ActionScript&#8217;s &#8230;rest argument</p>
<p>function( item : *, â€¦ignored ) : * {<br />
   // do the magic<br />
}</p>
<p>Regards,<br />
Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruben Swieringa</title>
		<link>http://joshua.almirun.com/tech/ria/flash/why-are-anonymous-closures-so-ugly-in-as3/comment-page-1#comment-226</link>
		<dc:creator>Ruben Swieringa</dc:creator>
		<pubDate>Mon, 07 Apr 2008 07:13:29 +0000</pubDate>
		<guid isPermaLink="false">http://joshua.almirun.com/tech/ria/flash/why-are-anonymous-closures-so-ugly-in-as3#comment-226</guid>
		<description>Haha, well they don&#039;t have to be that ugly, alot of it is determined by the way you code it. Nevertheless, read this, you might like the topic/tone:
http://gasi.ch/blog/functional-actionscript-part-1/</description>
		<content:encoded><![CDATA[<p>Haha, well they don&#8217;t have to be that ugly, alot of it is determined by the way you code it. Nevertheless, read this, you might like the topic/tone:<br />
<a href="http://gasi.ch/blog/functional-actionscript-part-1/" rel="nofollow">http://gasi.ch/blog/functional-actionscript-part-1/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Theo</title>
		<link>http://joshua.almirun.com/tech/ria/flash/why-are-anonymous-closures-so-ugly-in-as3/comment-page-1#comment-224</link>
		<dc:creator>Theo</dc:creator>
		<pubDate>Mon, 07 Apr 2008 06:36:20 +0000</pubDate>
		<guid isPermaLink="false">http://joshua.almirun.com/tech/ria/flash/why-are-anonymous-closures-so-ugly-in-as3#comment-224</guid>
		<description>I agree completely.

However, you don&#039;t need to name the second and third arguments explicitly, you can use ...rest instead:

function( o:*, ...rest ) : void { }

It&#039;s a bit shorter, but still not as terse as Ruby.</description>
		<content:encoded><![CDATA[<p>I agree completely.</p>
<p>However, you don&#8217;t need to name the second and third arguments explicitly, you can use &#8230;rest instead:</p>
<p>function( o:*, &#8230;rest ) : void { }</p>
<p>It&#8217;s a bit shorter, but still not as terse as Ruby.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
