ECMA-262: ElementList : ... AssignmentExpression? Wtf?
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.
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss