Class Method Syntax
Erik Arvidsson
erik.arvidsson at gmail.com
Tue Feb 12 07:49:08 PST 2013
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
More information about the es-discuss
mailing list