[squeak-dev] Ideas about sets and dictionaries round #2
leves at elte.hu
Tue Nov 17 01:11:13 UTC 2009
Round #1 was mostly about sets containing nil, and the winner seems to be
the object-oriented solution implemented by Igor:
What about the other ideas?
- create a common superclass (HashedCollection) for Set and Dictionary
- implement #valuesDo: only in Dictionary as a single self send of #do:
and remove other implementations from it's subclasses
- add Andres' changes (or something similar)
which help with weak hash values (#identityHash).
- add #keySet to dictionaries which returns a set with the keys, since
#keys now returns an Array
If you have anything against these ideas, please let us know.
More information about the Squeak-dev