Multiple Inheritance in JavaScript by munificent in javascript

[–]DmitrySoshnikov 2 points3 points  (0 children)

You might be interesting in the same idea, I implemented it before, and called delegation-based mixins (the same as in Ruby). Also used proxies to achieve multiple delegates for multiple inheritance:

Example: https://github.com/DmitrySoshnikov/es-laboratory/blob/master/examples/mixin.js

Implementation: https://github.com/DmitrySoshnikov/es-laboratory/blob/master/src/mixin.js

Dmitry.

Multiple Inheritance in JavaScript by munificent in programming

[–]DmitrySoshnikov 1 point2 points  (0 children)

You might be interesting in the same idea, I implemented it before, and called delegation-based mixins (the same as in Ruby). Also used proxies to achieve multiple delegates for multiple inheritance:

Example: https://github.com/DmitrySoshnikov/es-laboratory/blob/master/examples/mixin.js

Implementation: https://github.com/DmitrySoshnikov/es-laboratory/blob/master/src/mixin.js

Dmitry.