Kevin Smith wrote:
The idea was to treat them as similarly to 'function' as possible,
because * is such a small syntactic difference
Makes sense, although on the other side you have a huge semantic
difference, little refactoring hazard, and `yield` already reserved.
Yes, it's arguable. I was pushing for more implicitly strict bodies, as
you may recall ;-). We got module and class, not function (with or
without *) or arrow. I buy it, and the consensus seems stable.
Validating default parameters against strict mode seems no worse in kind
(if not degree) than validating parameter lists against duplicates was
in ES5 days. Gross, but doable and I think better than leaving default
expressions non-strict.
/be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss