>> - If instance factory B inherits from instance factory A, is B a subclass of 
>> A? B a subtype of A? B a subconstructor of A?
>> 
>> B inherits A's prototype, A is in B's "prototype chain"
> 
> B.prototype inherits A.protoype.
> A.prototype is a prototype of B. prototype (ugh).
> 
> This kind of nonsense is why I like the 'selfish' model.  The prototype chain 
> consists of plain objects with behaviors as properties. So you just say A is 
> a prototype of B. (I guess you are trying terminology for all of JS, but your 
> example points out one of the issues with new/fnc.prototype solution).


Agreed.

FWIW: I’ve implemented something similar to Selfish (using the method "new" was 
inspired by it): https://github.com/rauschma/proto-js

-- 
Dr. Axel Rauschmayer
[email protected]

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



_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to