Class Method Syntax

Allen Wirfs-Brock allen at wirfs-brock.com
Wed Feb 13 16:27:15 PST 2013


On Feb 12, 2013, at 8:51 AM, Domenic Denicola wrote:

> Oooh, static getters and setters, nice.

Of course, they aren't actually static in any real sense.  That's just the keyword.  They are just regularly dynamic properties of the class (ie constructor) object.

Allen




> 
> 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
> 
> 
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
> 



More information about the es-discuss mailing list