Kevin Smith wrote:
> InitialValue :
> AssignmentExpression
> ShortFunctionExpression
>
> This avoids precedence inversion and restricts short function
> expressions to appearing unparenthesized only where initial values may
> occur today (in array and object literals, in argument lists, on the
> right of assignment operators, and in variable initialisers).
To allow a parenthesized short function expression, we'll also need
PrimaryExpression:
...
( ShortFunctionExpression )
which really walks back into the parsing issue that I waived, but it's
already an issue without this production. With this production, one can
write short function expressions nested within larger expressions that
are not entirely the initialiser in some literal or arg-list. Seems
worth considering.
/be
_______________________________________________
es-discuss mailing list
es-discuss@...
https://mail.mozilla.org/listinfo/es-discuss