Even given what Allen said? I'm indifferent toward it at this point. Allen
is right that it's not particularly useful to allow it, but disallowing it
is also inconsistent with all related productions.

On Thu, Feb 12, 2015 at 9:45 PM, Brendan Eich <[email protected]> wrote:

> Please file a bug, ASAP. Thanks,
>
> /be
>
> Michael Ficarra wrote:
>
>> Is there any reason why a trailing comma is not allowed in an
>> ArrayBindingPattern when it has a BindingRestElement? I noticed yesterday
>> that my parser was erroneously allowing these, but the inconsistency with
>> both ArrayLiterals and ObjectBindingPatterns is bothering me. Is this
>> simply a mistake in the grammar? I understand that we wouldn't want to
>> allow holes or other BindingElements to follow the BindingRestElement, but
>> I don't see a problem with a single trailing comma.
>>
>> Michael Ficarra
>> _______________________________________________
>> es-discuss mailing list
>> [email protected]
>> https://mail.mozilla.org/listinfo/es-discuss
>>
>


-- 
Shape Security is hiring outstanding individuals. Check us out at
*https://shapesecurity.com/jobs/
<https://shapesecurity.com/jobs/>*
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to