3 ms·
Great, things are moving - does anybody know how far away the specs is from being finalized and when we'll see it in the browsers and not just Node?
by recuter 13y ago
Great, things are moving - does anybody know how far away the specs is from being finalized and when we'll see it in the browsers and not just Node?
- jlongster 13y agoIt's hard to say, but I think a year is an optimistic guess, and closer to two years more realistic. That's really not that long in terms of browser years though, and you can start building stuff on it today if you want to build a product for the future.
- _jmar777 13y agoThe specification has already reached "draft", so it's usually pretty stable at that point. Firefox has actually included generators for awhile now (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Iterators_and_Generators#Generators.3A_a_better_way_to_build_Iterators https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guid...), but their implementation is based on JavaScript 1.7, rather than ES6. The end implementation was pretty close, but didn't include the function* syntax (I don't believe they implemented yield* either). Regarding timeline, that's obviously hard to guess at from an external perspective, but most browser vendors seem to be comfortable enough with developing against draft-level specs, so hopefully soon.