Referencing `super`

Kevin Smith zenparsing at gmail.com
Wed Aug 6 03:59:08 PDT 2014


>
>
> I would recommend having those listed features in mind when talking about
> super() and namespaces, because the current spec still will prevent me from
> using native "class" keyword in JavaScript.
>
> If newbies ask me if they should use classes, I say no to them, because I
> still think the featureset of a mixin-based inheritance (leading to fancy
> prototype copying and sealing) is still better.
>

That would be terrible advice, because classes in Javascript are just sugar
for setting up a constructor and its associated prototype.  Once you define
a class, you can do any kind of dynamic tomfoolery that you like, including
setting up mixins in the fashion you describe.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140806/ae8d7f06/attachment.html>


More information about the es-discuss mailing list