Continuing woes in reading the ES6 spec language

Brendan Eich brendan at mozilla.com
Sun Sep 15 18:55:01 PDT 2013


> Angel Java Lopez <mailto:ajlopez2000 at gmail.com>
> September 15, 2013 7:43 PM
> Umm.. I don't know if needed, but named parameters could be an special 
> case, that is, the normal parameters has no name, but you can invoke 
> the function with
>
> f(1,2, x: 3, z: 4);

Again, we are not going there. Object literals suck all the air away.

> AFAIR, in V8, arguments is an object, not an array.

V8, Schmee-8 :-|.

The ECMA-262 spec says exactly what arguments is, and V8 follows the 
spec AFAIK.

> So, it can be used for named parameters, a la Ruby.

Not going here either. The arguments object is a botch, in ES6 when you 
use new forms you lose it in favor of those forms.

/be


More information about the es-discuss mailing list