Thierry Goubier wrote
> I consider that subclassing should be used for implementation reuse and
> not for subtyping.

That is the GoF position and it makes a lot of sense to me. In fact, I think
we Smalltalkers suffer from McLuhan's "people become their tools" syndrome
in that, because the browser makes it easy to view inheritance trees, we
confuse inheritance with subtyping, creating unnecessary coupling. This also
adds to the "Smalltalk has no APIs" problem; when only subclasses are
considered subtypes, one never has to define what is and is not the public
API; protocols could help here, but have never really been fleshed out for
this purpose and are a mess right now due to overloading with extension
method duties.



-----
Cheers,
Sean
--
View this message in context: http://forum.world.st/Stack-tp4834494p4834869.html
Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.

Reply via email to