Generator Arrow Functions

André Bargull andre.bargull at udo.edu
Tue Nov 26 15:00:09 PST 2013


> On 11/26/2013 02:28 PM, Claude Pache wrote:
> >/   From the thread [1], I guess that parsing correctly the following thing would be obnoxious (at best)?
> />/
> />/  	(a = yield/b/g) =>* {}
> />/
> />/  ---Claude
> /
> Indeed.
>
> And you can make even more obnoxious parses of the hypothetical combination of =>*, default parameters, and retroactive yield-scope:
>
> (a = yield/"/) =>* (/"/g)
>
> Are the two /"/'s regexps or is "/) =>* (/" a string token?
>
>       Waldemar

Are you sure? The `(a = yield/b/g)` part is parsed at first as a 
parenthesised expression and only later (after the `=>` token) 
reinterpreted as an ArrowFormalParameters grammar production.


- André
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20131127/839ab84d/attachment.html>


More information about the es-discuss mailing list