with

Axel Rauschmayer axel at rauschma.de
Thu Nov 17 06:20:05 PST 2011


>> True, that’s the catch. Then it works for composing an inheritance hierarchy (as in mixins as abstract subclasses).
>> 
>> Another idea for `extends` (if there is more than one object that is being extended):
>> 
>>     extends(comparable, enumerable, foo, bar) { ... }
> 
> I'm not sure what the semantics of this would be. Are you inventing multiple-prototype inheritance? That's not going to happen.


Single inheritance, a prototype chain composed from the given objects, in the given order. An infix operator is probably better for this, though.

-- 
Dr. Axel Rauschmayer
axel at rauschma.de

home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20111117/432eb7c9/attachment.html>


More information about the es-discuss mailing list