Oct. 27, 2014
12:49 p.m.
I wonder how JavaScript guys manage which behavior comes from base and which from a mixin. :) I used ExtJS, and you could do extensive use of mixins, but once they were mixed, it's all the same piece of code. I started using Traits and then moved away back to good'ol subclassification and, in some cases, code duplication. Regards! Esteban A. Maringolo 2014-10-27 7:44 GMT-03:00 phil@highoctane.be <phil@highoctane.be>:
Basically, plugging a trait in a class dynamically should be doable. Especially with our beloved platform that can ;-)
Otherwise, this reduces their usefulness quite a lot for composing things cleanly.
Hey, Javascript people can do these things. Admittedly, all is dirty all the time there .... :-p
Phil