Arrows Not Primary?

Kevin Smith khs4473 at gmail.com
Mon Sep 24 05:55:10 PDT 2012


Looking at the July 8 Draft, I notice that arrow functions are produced by
AssignmentExpression, not PrimaryExpression (as function expressions are).
 Why is that?  Is it to limit the operators that can be applied to them?

When descent parsing, we have to drill down into primary expression to
parse the "maybe-paren-expresion", so it's more straightforward to parse
arrows there.

Thanks!
Kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120924/fd097630/attachment.html>


More information about the es-discuss mailing list