I noticed expression closures, as defined below, have been excluded from
the spec.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Expression_closures

Currently implemented (and deprecated) in Firefox, which hasn't broken
anything by the looks of things.

While offering little above arrow functions, including these, in addition
to the existing shorthand syntaxes, should make the following examples work.

    var x = { value: 3, toString() 'string', valueOf() this.value };

    class x { constructor { this.value = 3; } valueOf() this.value }

Was there reasoning to not include them?
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to