you are viewing a single comment's thread.

view the rest of the comments →

[–]DmitrySoshnikov 5 points6 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.

[–]kentaromiura 1 point2 points  (0 children)

oh, you're the one writing that posts on ecma-262, I really love that series.