Define static properties and prototype properties with the class syntax

Andrea Giammarchi andrea.giammarchi at gmail.com
Sun Dec 14 10:46:07 PST 2014


Will do soon

Cheers

On Sun, Dec 14, 2014 at 6:00 PM, Rick Waldron <waldron.rick at gmail.com>
wrote:
>
>
>
> On Sun Dec 14 2014 at 10:40:53 AM Andrea Giammarchi <
> andrea.giammarchi at gmail.com> wrote:
>
>> as side note, I wonder why static hasn't been considered definable as
>> group/object
>>
>
>
>>
>> ```js
>> class Foo {
>>   static {
>>     bar: 'bar',
>>     get defaults() {
>>       return {de:'faults'};
>>     }
>>   }
>> }
>> ```
>>
>
> I like that, can you write up a proposal?
>
> Rick
>
>>
>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20141214/5d1ebbbc/attachment.html>


More information about the es-discuss mailing list