<?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"
	>
<channel>
	<title>Comments on: JavaScript New Features (EcmaScript 5)</title>
	<atom:link href="http://markcaudill.com/2009/04/javascript-new-features-ecma5/feed/" rel="self" type="application/rss+xml" />
	<link>http://markcaudill.com/2009/04/javascript-new-features-ecma5/</link>
	<description>All about me</description>
	<pubDate>Sun, 26 May 2013 00:34:10 +0000</pubDate>
	
		<item>
		<title>By: joseanpg</title>
		<link>http://markcaudill.com/2009/04/javascript-new-features-ecma5/#comment-1838</link>
		<dc:creator>joseanpg</dc:creator>
		<pubDate>Sat, 27 Feb 2010 19:21:39 +0000</pubDate>
		<guid isPermaLink="false">http://markcaudill.com/?p=6#comment-1838</guid>
		<description>This was true in april-2009 draft,  but in final version (december 1009) &lt;code&gt;arguments&lt;/code&gt;isn't Array:

10.6. Arguments Object
...
4. Set the [[Class]] internal property of obj to "Arguments".
5. Let Object be the standard built-in Object constructor (15.2.2).
6. Set the &lt;b&gt;[[Prototype]] internal property of obj to the standard built-in Object prototype object&lt;/b&gt; (15.2.4).</description>
		<content:encoded><![CDATA[<p>This was true in april-2009 draft,  but in final version (december 1009)
<div class="codesnip-container" >arguments</div>
<p>isn&#8217;t Array:</p>
<p>10.6. Arguments Object<br />
&#8230;<br />
4. Set the [[Class]] internal property of obj to &#8220;Arguments&#8221;.<br />
5. Let Object be the standard built-in Object constructor (15.2.2).<br />
6. Set the <b>[[Prototype]] internal property of obj to the standard built-in Object prototype object</b> (15.2.4).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sundev Lohr</title>
		<link>http://markcaudill.com/2009/04/javascript-new-features-ecma5/#comment-1816</link>
		<dc:creator>Sundev Lohr</dc:creator>
		<pubDate>Wed, 17 Feb 2010 19:05:33 +0000</pubDate>
		<guid isPermaLink="false">http://markcaudill.com/?p=6#comment-1816</guid>
		<description>It seems like ecma 5 is a backtrack from the stricter ecma 4 standard. I guess we have Microsoft to blame for that one... It's a shame because if we bit the bullet and added things like namespaces and strict typing, then we'd have some real speed increases. Speed is going to be key, what with everything going mobile and to some degree renouncing flash. Have you tried to run anything vaguely complex in javascript on a phone. You can't really do that much. I guess things like 'freeze' will add some speed by helping with encapsulation, but they could do so much more. Oh well, the web was never one to evolve that quickly.</description>
		<content:encoded><![CDATA[<p>It seems like ecma 5 is a backtrack from the stricter ecma 4 standard. I guess we have Microsoft to blame for that one&#8230; It&#8217;s a shame because if we bit the bullet and added things like namespaces and strict typing, then we&#8217;d have some real speed increases. Speed is going to be key, what with everything going mobile and to some degree renouncing flash. Have you tried to run anything vaguely complex in javascript on a phone. You can&#8217;t really do that much. I guess things like &#8216;freeze&#8217; will add some speed by helping with encapsulation, but they could do so much more. Oh well, the web was never one to evolve that quickly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jL</title>
		<link>http://markcaudill.com/2009/04/javascript-new-features-ecma5/#comment-1724</link>
		<dc:creator>jL</dc:creator>
		<pubDate>Tue, 19 Jan 2010 16:13:04 +0000</pubDate>
		<guid isPermaLink="false">http://markcaudill.com/?p=6#comment-1724</guid>
		<description>Nice stuff, though part of me simply can't believe there's _still_ no analogue for sprintf() in javascript...</description>
		<content:encoded><![CDATA[<p>Nice stuff, though part of me simply can&#8217;t believe there&#8217;s _still_ no analogue for sprintf() in javascript&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Animal</title>
		<link>http://markcaudill.com/2009/04/javascript-new-features-ecma5/#comment-1723</link>
		<dc:creator>Animal</dc:creator>
		<pubDate>Tue, 19 Jan 2010 13:20:00 +0000</pubDate>
		<guid isPermaLink="false">http://markcaudill.com/?p=6#comment-1723</guid>
		<description>@Konrad: You've always been able to call Array methods on an arguments object. Just call it directly from Array's prototype, but invoke it upon the arguments object using "call" or "apply":

var secondArgOnwards = Array.prototype.slice.call(arguments, 1);</description>
		<content:encoded><![CDATA[<p>@Konrad: You&#8217;ve always been able to call Array methods on an arguments object. Just call it directly from Array&#8217;s prototype, but invoke it upon the arguments object using &#8220;call&#8221; or &#8220;apply&#8221;:</p>
<p>var secondArgOnwards = Array.prototype.slice.call(arguments, 1);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xurfa</title>
		<link>http://markcaudill.com/2009/04/javascript-new-features-ecma5/#comment-1711</link>
		<dc:creator>xurfa</dc:creator>
		<pubDate>Fri, 15 Jan 2010 18:28:48 +0000</pubDate>
		<guid isPermaLink="false">http://markcaudill.com/?p=6#comment-1711</guid>
		<description>"Unicode 3.0"? Wow, that's very up-to-date... :-(</description>
		<content:encoded><![CDATA[<p>&#8220;Unicode 3.0&#8243;? Wow, that&#8217;s very up-to-date&#8230; <img src='http://markcaudill.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin Love</title>
		<link>http://markcaudill.com/2009/04/javascript-new-features-ecma5/#comment-1550</link>
		<dc:creator>Justin Love</dc:creator>
		<pubDate>Sun, 13 Dec 2009 14:12:37 +0000</pubDate>
		<guid isPermaLink="false">http://markcaudill.com/?p=6#comment-1550</guid>
		<description>Thanks for the list.  It looks like some of the toJSON methods got cut?

I didn't happen across an "ES5-rollup" library, so I started one.

http://bitbucket.org/JustinLove/es5/</description>
		<content:encoded><![CDATA[<p>Thanks for the list.  It looks like some of the toJSON methods got cut?</p>
<p>I didn&#8217;t happen across an &#8220;ES5-rollup&#8221; library, so I started one.</p>
<p><a href="http://bitbucket.org/JustinLove/es5/" rel="nofollow">http://bitbucket.org/JustinLove/es5/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Caudill</title>
		<link>http://markcaudill.com/2009/04/javascript-new-features-ecma5/#comment-71</link>
		<dc:creator>Mark Caudill</dc:creator>
		<pubDate>Sat, 18 Apr 2009 13:04:09 +0000</pubDate>
		<guid isPermaLink="false">http://markcaudill.com/?p=6#comment-71</guid>
		<description>Brendan: Thanks for the correction!  I did look at the spec but I overlooked 10.5 CreateArgumentsObject #5, I only saw the argument getting the Arguments class.

Alo, harmony looks exciting as well, but the fact that ES5 is already making motions to implementation really make the immediate future promising.  I can see a year from now us having a "ES5-rollup" library (in Javascript) that attempts compatibility when using "ES3."  Great things to come no matter what though.</description>
		<content:encoded><![CDATA[<p>Brendan: Thanks for the correction!  I did look at the spec but I overlooked 10.5 CreateArgumentsObject #5, I only saw the argument getting the Arguments class.</p>
<p>Alo, harmony looks exciting as well, but the fact that ES5 is already making motions to implementation really make the immediate future promising.  I can see a year from now us having a &#8220;ES5-rollup&#8221; library (in Javascript) that attempts compatibility when using &#8220;ES3.&#8221;  Great things to come no matter what though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brendan Eich</title>
		<link>http://markcaudill.com/2009/04/javascript-new-features-ecma5/#comment-70</link>
		<dc:creator>Brendan Eich</dc:creator>
		<pubDate>Sat, 18 Apr 2009 05:05:29 +0000</pubDate>
		<guid isPermaLink="false">http://markcaudill.com/?p=6#comment-70</guid>
		<description>Konrad@5:55pm - ES5 does make arguments have Array.prototype in its prototype chain, a change from ES1-3. So you can say arguments.slice(0,2), e.g., and not the overlong Array.prototype.slice.call(arguments,0,2).

Coming in ES Harmony: rest parameters, as drafted for ES4: function foo(fst, snd, ...rest) { /* here rest is a true Array instance */ }. To match, the "spread" operator: given an Array arr, you can spread it out so its elements are passed as positional parameters to a function foo, via foo(...arr). With rest and the spread operator, one can compose new and apply without a hardcoded newApply method, and the need for arguments goes away.

/be</description>
		<content:encoded><![CDATA[<p>Konrad@5:55pm - ES5 does make arguments have Array.prototype in its prototype chain, a change from ES1-3. So you can say arguments.slice(0,2), e.g., and not the overlong Array.prototype.slice.call(arguments,0,2).</p>
<p>Coming in ES Harmony: rest parameters, as drafted for ES4: function foo(fst, snd, &#8230;rest) { /* here rest is a true Array instance */ }. To match, the &#8220;spread&#8221; operator: given an Array arr, you can spread it out so its elements are passed as positional parameters to a function foo, via foo(&#8230;arr). With rest and the spread operator, one can compose new and apply without a hardcoded newApply method, and the need for arguments goes away.</p>
<p>/be</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Caudill, a ninja in waiting » JavaScript New Features &#8230;</title>
		<link>http://markcaudill.com/2009/04/javascript-new-features-ecma5/#comment-68</link>
		<dc:creator>Mark Caudill, a ninja in waiting » JavaScript New Features &#8230;</dc:creator>
		<pubDate>Wed, 15 Apr 2009 07:01:40 +0000</pubDate>
		<guid isPermaLink="false">http://markcaudill.com/?p=6#comment-68</guid>
		<description>[...] Originally posted here: Mark Caudill, a ninja in waiting » JavaScript New Features &#8230; [...]</description>
		<content:encoded><![CDATA[<p>[...] Originally posted here: Mark Caudill, a ninja in waiting » JavaScript New Features &#8230; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JavaScript is getting a facelift.</title>
		<link>http://markcaudill.com/2009/04/javascript-new-features-ecma5/#comment-67</link>
		<dc:creator>JavaScript is getting a facelift.</dc:creator>
		<pubDate>Wed, 15 Apr 2009 00:49:28 +0000</pubDate>
		<guid isPermaLink="false">http://markcaudill.com/?p=6#comment-67</guid>
		<description>[...] Or more like an upgrade. Mark Cuadill has more to say about it. [...]</description>
		<content:encoded><![CDATA[<p>[...] Or more like an upgrade. Mark Cuadill has more to say about it. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
