holes in spread elements/arguments

Erik Arvidsson erik.arvidsson at gmail.com
Fri Sep 30 09:42:30 PDT 2011

On Thu, Sep 29, 2011 at 12:53, Allen Wirfs-Brock <allen at wirfs-brock.com> wrote:
> Also, note that I've currently spec'd ES6 so that 'arguments' can be used as
> a rest parameter name.  In other words
>    function foo(...args) {return args}
> and
>   function foo(...arguments) {return arguments}
> are semantically equivalent.
> I did this to  enable to make it easier to migrate code  such as:
>    function foo() {baz(arguments)}
> to
>    function foo(...arguments) {baz(arguments)}

Minus the Arguments class I hope.


More information about the es-discuss mailing list