El 22-08-2013, a las 14:12, Stéphane Ducasse <stephane.ducasse@inria.fr> escribió:
Does pharo support runtime trait composition or does it only work on class definition time. I mean something like
anObject addTrait: MySpecialCapability anObject removeTrait: MySpecialCapability
Nope :) traits are static :)
Sad. You know I was not asking about trait but about runtime composable behavior. I'm not sure what you mean with "traits are static". If traits are static in pharo that's fine. If you think traits are static by design then I was looking for something that has a different name :)
:)
What I think is that traits are cool but not powerful enough but even the ones that we have right now makes the system more complex and this is what makes me sad :) I would prefer something more powerful and simpler: the graal :)
Stef
Interesting. Is it only problem of system complexity? I have the impression the problem is that people do not changed his mind in order to think in traits. (or generally speaking in any other system like mixins, aspects, etc.) It looks like objects with single-inheritance are simple and powerful enough. Or maybe any system like traits have not come with efficient enough IDE? Cheers, Jura