Class Method Syntax
Domenic Denicola
domenic at domenicdenicola.com
Tue Feb 12 07:51:32 PST 2013
Oooh, static getters and setters, nice.
Glad to see the max-min idea seems to be working out well :). Little incremental improvements like this seem natural and a joy to use. Awesome to see them in Traceur so quickly too!
________________________________________
From: es-discuss-bounces at mozilla.org [es-discuss-bounces at mozilla.org] on behalf of Erik Arvidsson [erik.arvidsson at gmail.com]
Sent: Tuesday, February 12, 2013 10:49
To: Kevin Smith
Cc: es-discuss
Subject: Re: Class Method Syntax
On Tue, Feb 12, 2013 at 9:44 AM, Kevin Smith <khs4473 at gmail.com> wrote:
> First, thanks for creating a proposal for this. A couple of questions:
>
> 1) Is class method syntax slated for ES6?
Yes.
> 2) I assume that we'd parse "static" the same way we parse "get" and "set",
> e.g. this is possible:
>
> class C {
> static() {} // Method "static" on C instance
> static static() {} // Method "static" on C
> }
Yes.
https://code.google.com/p/traceur-compiler/source/browse/test/feature/Classes/Static.js#23
--
erik
_______________________________________________
es-discuss mailing list
es-discuss at mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
More information about the es-discuss
mailing list