Re:ES6 generators in depth
by onestone on Monday March 30, 2015 @12:16PM
(#9290509)
Why do you think the current syntax is more backwards-compatible? Vanilla ES5 parsers complain loudly when seeing "function *".
[ Parent
| on HN ]
It's the other way around. ES6 needs to support loading ES5 content. They can't make 'generator' a keyword because it was a perfectly fine variable name in ES5.
You are right. My bad.
Re:ES6 generators in depth
by tlrobinson on Monday March 30, 2015 @01:56PM
(#9291268)
That would be considered "forward-compatible".