Allen Wirfs-Brock (2013-11-29T16:59:19.000Z)
On Nov 28, 2013, at 1:44 PM, Kevin Smith wrote:

> 
> 
> 
> 
> 'yield' is already disallowed in generator function default initializer expressions (although I was reviewing the latest spec. revision yesterday and there may still be still bugs I have to fix in that regard).
> 
> The reason it isn't allowed is that the generator object is not yet instantiated and active at the point where a default value initializer would be evaluated. (note you yield from a invocation on the generator object, not the generator function that creates a generator object) .
> 
> 
> Yes, 'yield' the operator is disallowed in parameter default expressions.  But what about 'yield' the identifier?  My current reading of the spec is that it _is_ allowed, but I could be misreading.  It seems more natural to me to disallow 'yield' the identifier in the whole generator (formal parameters and body, both).

Yes, the spec. isn't quite right yet in that regard.  The intent is that 'yield' is illegal both as an operator and as an identifier in the formal parameter lists of a generator function. 

Allen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20131129/913aa0e9/attachment.html>
domenic at domenicdenicola.com (2013-12-10T01:26:40.121Z)
Yes, the spec. isn't quite right yet in that regard.  The intent is that 'yield' is illegal both as an operator and as an identifier in the formal parameter lists of a generator function.