[Pharo-users] Traits for class methods?
stephan at stack.nl
Thu Feb 14 03:04:22 EST 2019
Cyril Ferlicot <cyril.ferlicot at gmail.com>
> I'm not a big fan of limiting the language on composition because the
> choice between composition and inheritance should be conceptual and
> not technical.
> I read in an article this way to choose between inheritance and composition:
An alternative (Smalltalk) view is that inheritance is primarily a code
reuse instrument. Use it when it allows you to do so. Java and c++ deformed
a lot of OO thinking
More information about the Pharo-users