Jeremy Martin (2013-07-15T16:09:14.000Z)
domenic at domenicdenicola.com (2013-07-19T15:33:50.289Z)
Alternatively, could `yield` simply be lexically bound to the nearest GeneratorFunction scope, rather than the nearest Function? E.g., instead of: ```js suspend(function* (resume) { yield setTimeout(resume, 1000); console.log('foo'); yield setTimeout(resume, 1000); console.log('bar'); })(); ``` ... we could write: ```js suspend(function* (resume) { ['foo', 'bar'].forEach(function(word) { yield setTimeout(resume, 1000); console.log(word); }); })(); ``` The current state of things here is pretty ugly, and I'd really like to avoid having to add something like `suspend.forEach(Array, GeneratorFunction)` with `yield*` in the body.