Hi, A final point while I am thinking about it:
On Fri 06 Jun 2014 13:57, Andy Wingo <[email protected]> writes: > 1: Essential differences > == > > Array comprehensions are eager. Generator comprehensions are lazy. This difference shows up here, for example: Q.async(function*(){ return [for (x of y) yield x] })() You can yield in the body of an ES6 array comprehension, but not in the body of a generator comprehension. This isn't something you can do with an internal iterator design. Andy _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

