Expression Closures as Compliment to Arrow Functions

Jacob Parker jacobparker1992 at
Mon Mar 23 09:42:19 UTC 2015

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

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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list