ECMA-262: ElementList : ... AssignmentExpression? Wtf?

Brendan Eich brendan.eich at gmail.com
Mon Oct 30 02:53:29 UTC 2017


Expression is .comma expression so can't be used without fatal ambiguity:
is [a,,b] [(a,b)] or [(a), (b)]? It's the latter by using
AssignmentExpression. If it were PrimaryExpression, ever expression using a
binary operator would need to be parenthesized.

Is the "Dragon Book" still in print? Recommended.

/be

On Sun, Oct 29, 2017 at 5:49 AM Uncloud Group <hydroperhh at gmail.com> wrote:

> The first example was meant to be [ a, b ]. Sorry.
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20171030/ca6aa7ef/attachment.html>


More information about the es-discuss mailing list