Generator Arrow Functions

Brendan Eich brendan at mozilla.com
Thu Nov 14 14:16:22 PST 2013


Claus Reinke wrote:
> What I don't understand is why generator expressions are not used
> as the only way to create generators, leaving 'function' alone.

We have been over this before: to support flows that for-of loops cannot 
expression, specifically coroutine libraries such as http://taskjs.org/.

/be


More information about the es-discuss mailing list