Dictionary keys that exist but can't be found
Tim Olson
tim at jump.net
Mon Apr 15 12:49:48 UTC 2002
I wrote:
> I was actually using Association because it was an existing class with
> two inst vars (holding two values and equality comparison was all the
> behavior I required).
Richard O'Keefe replied:
>What's wrong with Point?
Point probably would have worked. But the tuples I was building were
symbol, integer pairs, which looks a bit strange in a Point, as they
usually hold two numbers. Associations were a much more obvious choice,
except for the equality problem.
-- tim
More information about the Squeak-dev
mailing list
|