javascript
javascript copied to clipboard
Revisit standing on Iterators and Generators
So is there any intention to revisit the standing on Iterators and Generators? I'm mostly instrested specifically in revisiting the advice given in 11.2 Don’t use generators for now.
Reason for asking
I think most of the advice still holds - generators are best avoided, and generators are transpiled the same as they were 7+ years ago.
I agree using iterators is becoming more reasonable, especially with iterator helpers shipping soon, so that section may be revisited in the medium term.
@ljharb But hey, why should we transpile generators now? Other than you might use outdated systems, you don't need to.
What systems you use isn't really relevant; what systems you serve to is what you should be maximizing.
Either way, generators are just subpar syntax sugar for creating iterators; there's not much value to be had by using them anyways.