[squeak-dev] Ideas about sets and dictionaries round #2

Ralph Johnson johnson at cs.uiuc.edu
Tue Nov 17 13:48:24 UTC 2009


On Mon, Nov 16, 2009 at 7:11 PM, Levente Uzonyi <leves at elte.hu> wrote:
> 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

I think a better solution is to give Set and Dictionary a common
component, a HashTable.  I've seen this done several times and it
always resulted in a clean design.  The major drawback is that
MethodDictionary doesn't fit that design, and the VM needs to know the
format of MethodDictionary.

-Ralph



More information about the Squeak-dev mailing list