Allen Wirfs-Brock (2014-08-22T18:31:16.000Z)
On Aug 22, 2014, at 9:27 AM, Kevin Smith wrote:

> 
> and it could only be reserved in strict mode code.
> 
> I feel like I'm forgetting something obvious, but why?  We already use a parameterized grammar (not parameterized on strictness) for "yield".  I would think you'd just be adding to that parameterization.
> 

I think you'reright.  The fact that `yield` is reserved in ES5 strict mode is only relevant for non-generator functions.  We could (now, but not latter) reserve another identifier contextually within generator functions.  We just did something similar with `await` within modules.

Allen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140822/b52cd8b0/attachment.html>
domenic at domenicdenicola.com (2014-08-26T18:27:05.519Z)
On Aug 22, 2014, at 9:27 AM, Kevin Smith wrote:

> I feel like I'm forgetting something obvious, but why?  We already use a parameterized grammar (not parameterized on strictness) for "yield".  I would think you'd just be adding to that parameterization.


I think you'reright.  The fact that `yield` is reserved in ES5 strict mode is only relevant for non-generator functions.  We could (now, but not latter) reserve another identifier contextually within generator functions.  We just did something similar with `await` within modules.