Minimalist Classes

Axel Rauschmayer axel at
Wed Nov 2 08:08:45 PDT 2011

I don’t think Allen’s proposal is controversial, any more. It’s how things work in almost all mainstream (OO) languages. I don’t see myself using `super` anywhere outside an object literal – except for a few cases where Object.defineMethod() works just fine. Do you have any real-world examples where you want to use `super` outside an object literal? Caveat: In some contexts, you need the extension "monocle" operator to make object literals viable.

>> So it only works inside an object literal, whereas mine is easier to
>> understand and works anywhere.  If you are using it without any of the
>> other stuff you can even trivially get your minifier to desugar for
>> older browsers.
>> I don't think hard coding the name of the super-constructor is a
>> problem.

Dr. Axel Rauschmayer
axel at


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list