On Thu, Nov 4, 2010 at 10:48 PM, Jon Zeppieri <[email protected]> wrote:

>
>
> Spread-as-rest-arg-syntax constructs an array. Spread-as-operator splices
> the elements of an array into an argument list.
>
> So, if a spread operator expression: ...null splices zero values into an
> argument list, then its counterpart would be something like:
>
> function foo(x, y, ...z) { }
>
> foo(1, 2);
>
> ... where we pass zero optional arguments to foo, and z is bound to an
> empty array. Which is what we'd expect. So, yeah, plan B makes sense.
>
>
Ugh. Sorry for working out my confusion in posts to this list. Of course,
the example above isn't a satisfactory counterpart to the ...null
expression, since it doesn't anywhere involve a null. I suppose there is no
real counterpart in the rest arg syntax.
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to