Re:Prototypes Are Not Classes
by angersock on Sunday January 19, 2014 @03:37PM
(#7085888)
What are the cases where MI is better than mix-ins or component architectures?
[ Parent
| on HN ]
NewtonScript had a neat concept of heterogeneous multiple inheritance: Its "objects" had a prototype-like inheritance chain and a container inheritance chain.
If client-side JavaScript had this design, there would be no need for the DOM to have a special event mechanism that lives outside of method handling: DOM elements would simply have method handlers and the dispatch system would handle prototype and container inheritance.
> NewtonScript had a neat concept of heterogeneous multiple inheritance: Its "objects" had a prototype-like inheritance chain and a container inheritance chain.
See also HyperCard/HyperTalk...
Maybe just in some corner cases.
However Eiffel, OCaml and Python MI implementations seem to be implemented in a more sane way.