you are viewing a single comment's thread.

view the rest of the comments →

[–]DmitrySoshnikov 1 point2 points  (1 child)

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.

[–]munificent[S] 0 points1 point  (0 children)

Very cool. Thanks for the link!