Brendan Eich wrote:
So, case by case:

* arrow function syntax (which does not imply "use strict" in body prologue)
* class
* const
* default parameters
* destructuring
* rest parameters
* generators (function*, yield in function* body)
* comprehensions
* generator expressions
* module

I left out for-of loops that go with comprehensions and genexps like peas and carrots -- obviously for (x of o) is illegal in JS today, so there's no forward compatibility and the new for (x of o) body(); loop statement syntax again can be its own opt-in.

/be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to