Brendan Eich (2014-01-21T01:17:19.000Z)
David Bruant wrote:
> Le 20/01/2014 18:39, Brendan Eich a écrit :
>> Allen Wirfs-Brock wrote:
>>> It isn't clear that there much need for a global name for 
>>> GeneratorFunction.  If you really eed to access it can always get it 
>>> via:
>>>
>>>    (function *() {}).constructor
> Do we even need (function *() {}).constructor !== Function?
> (and [[FunctionKind]] "generator" and a different @@toStringTag and...)
> What is its use case anyway? Creating a generator from source?
> What's wrong with:
>     eval("function*(x, y, z, ...yo){/*body*/}")
> (and when the source isn't trusted, use indirect eval or soon enough 
> the module loader) 

Good questions.

/be
domenic at domenicdenicola.com (2014-01-24T20:01:51.501Z)
David Bruant wrote:
> Do we even need `(function *() {}).constructor !== Function`?
> (and [[FunctionKind]] "generator" and a different @@toStringTag and...)
> What is its use case anyway? Creating a generator from source?
> What's wrong with:
>
>     eval("function*(x, y, z, ...yo){/*body*/}")
>
> (and when the source isn't trusted, use indirect eval or soon enough 
> the module loader) 

Good questions.