Updated prediction: There will be exactly 1 people in the world who use JS generators after async/await ships
-
-
@wycats yea, I prob should have said "write" not "use" -
@lbljeffmo I think there will be a decent amount of people who write 'em, but only libs, not apps. -
@wycats we shall see -- I'm betting not ;) -
@lbljeffmo you're betting that most iterator impls will not be written using generators? Or that there will be vanishingly few collections? -
@wycats few collections in practice -
@lbljeffmo I can think of a decent amount off the top of my head: jQuery, a few in _, lodash, the various immutable libs, Ember collections -
@wycats why generator-backed collections? Common case is finite collections (for infinite you really want streams -- maybe async gen) -
@lbljeffmo it's just easier to write iterators using generators. That's what they're for. - 5 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.