News for hackers. Stuff that matters.
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 *".
Re:ES6 generators in depth by nkron on Monday March 30, 2015 @12:28PM (#9290605)
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.
Re:ES6 generators in depth by onestone on Monday March 30, 2015 @02:43PM (#9291627)
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".