4 ms·
But object in Python is the metaobject, right? Classes are instances of type, type is an instance of object. Is the difference that one draws a line between cl
by Spivak 2y ago
But object in Python is the metaobject, right? Classes are instances of type, type is an instance of object.
Is the difference that one draws a line between classes and instances? So like in JS an object is a "subclass" of its parent in addition to being an instance of it because the line between them doesn't exist.
If in JS every object had .prototypes plural it seems like it could work with C3 linearization in exactly the same way.
- larodi 2y agoThere is no such thing as multiple inheritance in JS. You can do mixins, but is not the same thing as it is on object level. There are no classes in JS, but prototypes. So it’s really prototype oriented and very much Lisp-ish in all aspects.