<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>rest &#8211; Alessandro Crugnola &#8211; sephiroth.it</title>
	<atom:link href="https://blog.sephiroth.it/tag/rest/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.sephiroth.it</link>
	<description>programmer by pure chance</description>
	<lastBuildDate>Thu, 17 Jun 2010 08:21:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://blog.sephiroth.it/wp-content/uploads/2019/03/cropped-sepy-big-32x32.png</url>
	<title>rest &#8211; Alessandro Crugnola &#8211; sephiroth.it</title>
	<link>https://blog.sephiroth.it</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>ActionScript 3, &#8230; (rest) parameter, finally!</title>
		<link>https://blog.sephiroth.it/2006/06/04/actionscript-3-rest-parameter-finally/</link>
					<comments>https://blog.sephiroth.it/2006/06/04/actionscript-3-rest-parameter-finally/#comments</comments>
		
		<dc:creator><![CDATA[Alessandro Crugnola]]></dc:creator>
		<pubDate>Sun, 04 Jun 2006 18:58:09 +0000</pubDate>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[ecma]]></category>
		<category><![CDATA[kwds]]></category>
		<category><![CDATA[labs]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[rest]]></category>
		<guid isPermaLink="false">http://blog.sephiroth.it/?p=146</guid>

					<description><![CDATA[Yesterday I was reading the latest actionscript 3 documentation on adobe labs and I found that they finally introduced the &#8230; (rest) function&#8217;s argument, as also described in the ECMA Script 4 specifications. I say &#8220;finally&#8221; because it&#8217;s since I discovered python *args and **kwds function arguments that I pray for them also in actionscript. &#8230; <a href="https://blog.sephiroth.it/2006/06/04/actionscript-3-rest-parameter-finally/" class="more-link">Continue reading <span class="screen-reader-text">ActionScript 3, &#8230; (rest) parameter, finally!</span></a>]]></description>
										<content:encoded><![CDATA[<p>Yesterday I was reading the latest actionscript 3 documentation on <a href="http://livedocs.macromedia.com/labs/1/flex20beta3/langref/index.html" target="_blank">adobe labs</a> and I found that they finally introduced the &#8230; (<strong>rest</strong>) function&#8217;s argument, as also described in the <a href="http://www.mozilla.org/js/language/es4/core/functions.html#rest" target="_blank">ECMA Script 4 specifications</a>.<br />
I say &#8220;finally&#8221; because it&#8217;s since I discovered python *args and **kwds function arguments that I pray for them also in actionscript.<br />
In actionscript3 rest parameter is used for example:</p>
<p>[cc lang=&#8221;actionscript3&#8243;]<br />
public function log(message:String, &#8230; rest):void<br />
{<br />
logging.text += message + &#8220;\n&#8221;;<br />
for(var i:uint = 0; i &lt; rest.length; i++)<br />
{<br />
logging.text += rest[i] + &#8220;\n&#8221;;<br />
}<br />
}<br />
log(&#8220;hello&#8221;, &#8220;spammed&#8221;, &#8220;world&#8221;);</p>
<p>[/cc]</p>
<p>The reference says about the rest parameter: <em>specifies that a function will accept any number of comma delimited arguments. The list of arguments becomes an array that is available throughout the function body.</em><br />
Now I just will wait till they will intoduce also the **kwds python equivalent parameter and I will an happy man! 🙂<br />
Read more <a href="http://livedocs.macromedia.com/labs/1/flex20beta3/langref//statements.html#..._(rest)_parameter">here</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.sephiroth.it/2006/06/04/actionscript-3-rest-parameter-finally/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
	</channel>
</rss>
