[squeak-dev] Ideas about sets and dictionaries round #2
Levente Uzonyi
leves at elte.hu
Tue Nov 17 01:11:13 UTC 2009
Hi,
Round #1 was mostly about sets containing nil, and the winner seems to be
the object-oriented solution implemented by Igor:
http://bugs.squeak.org/file_download.php?file_id=3829&type=bug
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)
http://lists.gforge.inria.fr/pipermail/pharo-project/2009-November/015464.html
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.
Cheers,
Levente
More information about the Squeak-dev
mailing list
|