Talk:Traits Proposal
From OpenLaszlo
"what about dynamic traits?"
I would say no to this. States should do this, and this is an expensive implementation. I think that if traits are static, they'll be much faster and smaller. Even just traits on instances will be a hassle -- they'll have to be added to the constructor.
I think instance traits are essential to maintain our "instance-first development" philosophy. It also ties us clearly back to the prototype object model that underlies JavaScript.
Whether it should be dynamic or not, I don't feel so strongly. I guess if an instance can't change it's class, it shouldn't be able to change it's traits either.
Amending my opinion here. I think that dynamically applied traits actually explain states -- a state is an engine that applies and removes a trait. Very clear and simple. I'll add it back to the proposal and see what people think.

