[BUG]Collection>>removeAll:

Ned Konz ned at bike-nomad.com
Thu Aug 22 19:01:14 UTC 2002


On Thursday 22 August 2002 10:34 am, Tim Rowledge wrote:

> There is a depressingly large population of messages that appear to
> have been implemented for a singe class without any thought of how
> other related classes will behave, or indeed ought to behave. Too
> much cruft, people, far too much.

I think it might be cleaner to eliminate some of the inheritance from 
the collection classes. This seems to be more of a compression scheme 
(saving compiled bytes) than driven by actual need. This would reduce 
the need to be sensitive to the needs of distantly related 
subclasses.

For instance the Set/Dictionary relationship is awkward at best; the 
interfaces are mostly different, and the inheritance is more because 
of the implementation of Dictionary than a true behavioral 
specialization.

The meaning of do:, includes:, etc. are different in Dictionary than 
you'd expect if you really wanted to look at Dictionary as a Set of 
Associations.

-- 
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE




More information about the Squeak-dev mailing list