Stateful traits
Balázs Kósi
rebmekop at gmail.com
Tue Sep 26 14:20:11 UTC 2006
Hi Stephane!
The presentation has a slide titled Traits limits:
1) Trait users should define missing traits state
2) Important required methods and required state are mixed
3) Boilerplate glue code
4) Propagation of required accessors
With stateful traits instead of 1) and 3) now they have to call the
proper initialization methods, or setters of the traits. Is this any better?
2) is bad. Maybe categorisation of methods can help?
1) and 3) maybe also can be solved by tools, generating the proper
inst vars, and accessors.
What do you think?
Another question: Can Traits define class side behaviour?
thanks, balázs
More information about the Squeak-dev
mailing list
|