[squeak-dev] Etoys Tiles
Bert Freudenberg
bert at freudenbergs.de
Sun Sep 21 21:26:25 UTC 2008
Am 21.09.2008 um 23:07 schrieb karl ramberg:
> From my understanding a Trait could extend the Player class without
> adding metods to it, thus keeping the interface cleaner and more
> maintainable.
> Both Morph and Player are huge classes that could use some
> simplification as well as keeping it possible to extend them. So a
> change in strategy to achive that goal would be nessesary. Maybe
> traits could help there.
I doubt that. Traits help when you want to avoid duplicating
functionality in classes unrelated by inheritance. They do so by
adding methods to classes automatically - this does not actually
simplify the design if you only have a single class.
- Bert -
More information about the Squeak-dev
mailing list
|