[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Hash table equality pitfall
From: |
John Cowan |
Subject: |
Re: [Chicken-users] Hash table equality pitfall |
Date: |
Thu, 1 Mar 2012 21:08:17 -0500 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
Alex Shinn scripsit:
> > What does this mean in practice? Do they do a "dumb" comparison like
> > Chicken does (ie, producing different results depending on the insertion
> > order) or do they check whether the hash tables have exactly the same
> > keys, each with identical corresponding values?
>
> Chibi does a dumb comparison like Chicken does.
I'd guess that Kawa delegates to Java's java.util.AbstractMap#equals
method, which returns true if the keys and their values are equal;
it does not care whether the maps are of the same types.
--
Si hoc legere scis, nimium eruditionis habes.