Brendan Eich (2013-07-16T19:05:43.000Z)
domenic at domenicdenicola.com (2013-07-19T15:38:15.904Z)
Mark S. Miller wrote: > Troubles me too. As of ES6 the only possible alternative would be to > remove generators from the language. I can't see that happening. That would be somewhere between "making the perfect the enemy of the good" and "cutting off your nose to spite your face". If we want call/cc (plus macros to sugar it into usability), there's the door -- it ain't in JS outside of Rhino, and (for good reasons you adduce) it won't be added. But we have good use cases for generators, including to implement iterators independent of async. programming. For async we're looking at defer/await for ES7. This is how living languages evolve. Sorry to preach to the choir (I hope :-P).