[squeak-dev] Subclassing OrderedCollection in an external package

Frank Shearar frank.shearar at gmail.com
Tue Mar 5 22:15:55 UTC 2013


On 5 March 2013 22:06, tim Rowledge <tim at rowledge.org> wrote:
>
> On 05-03-2013, at 2:01 PM, Chris Muller <asqueaker at gmail.com> wrote:
>
>>> P.S.: If XMLOrderedList is a subclass of OrderedCollection, then it's just
>>> plain wrong IMHO. Creating subclasses of collections in external packages is
>>> bad practice.
>>
>> Hi Levente, I was just curious why that is bad practice.
>
> I am also curious why you think that. Making subclasses is pretty much the essence of programming.

Oh, the horror! Surely you mean _composition_, which subsumes diry,
icky inheritance. ("Dirty, icky" because to understand one class you
need to understand all its ancestors and all its descendants.)

frank

> tim
> --
> tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
> Oxymorons: Airline Food
>
>
>


More information about the Squeak-dev mailing list