Expression Closures as Compliment to Arrow Functions

Jacob Parker jacobparker1992 at gmail.com
Wed Mar 25 09:23:01 UTC 2015


Could the comma not be the delimiter, as I think works with arrow
functions, or is that more precedence issues?

On Wed, 25 Mar 2015 8:37 am Brendan Eich <brendan at mozilla.org> wrote:

> Jacob Parker wrote:
> > In the context of only objects and classes, is this format no-go?
>
> Without the } that closes a concise method body, there's a new problem
> to-do with computed property names:
>
> class C {
>    m() this._m
>    [Symbol.iterator]() {/*...*/}
> }
>
> We need a delimiter. Could use ; without ASI, so it'd look like this:
>
> class C {
>    m() this._m;
>    [Symbol.iterator]() {/*...*/}
> }
>
> I haven't checked for other problems, but wanted to throw this out and
> see if anyone else sees a live one.
>
> /be
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150325/7de47407/attachment.html>


More information about the es-discuss mailing list