Using destructuring for function arguments

Dmitry Soshnikov dmitry.soshnikov at gmail.com
Sat May 31 14:21:13 PDT 2014


On Sat, May 31, 2014 at 1:41 PM, Brendan Eich <brendan at mozilla.org> wrote:

> Matthew Robb wrote:
>
>> Seems like any identifiers in the arguments should always be defined in
>> scope before ever considering what they will be assigned.
>>
>
> Right, and they are in scope no matter what.
>
> Seems to me that an implementation bug (can't have parameter default value
> for destructuring formal) is the only problem brought to light in this
> thread. Anyone see anything else amiss?
>
>
No, seems it's the only problem. Also, just to add: esprima parser also has
this bug yet (can't have param default value with patterns).

Dmitry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140531/c5126a9c/attachment.html>


More information about the es-discuss mailing list