I would expect that right now the same version of Clojure would typically
give you the same hash for the same data structure across different JVM
instances. HOWEVER, I would consider this accidental, not a guarantee.
Certainly the hash values may change across Clojure or JDK versions.
Additiona
In addition to Andy's caveats, remember that hash code equality doesn't
imply object equality.
In concrete terms,
a = b implies h(a) = h(b),
with the useful bit being
h(a) ≠ h(b) implies a ≠ b.
On Monday, October 13, 2014 2:04:57 AM UTC-4, Sunil Nandihalli wrote:
>
> Hi,
> Is the clojure
For immutable values (including hash-maps containing only immutable
values), I believe the answer is yes, if you are using the same version of
Clojure on the different jvms (at least, I cannot think of any
counterexamples in a few minutes of thinking about it, and I have looked at
the hash function
Hi,
Is the clojure hash function guaranteed to produce the same hash on
different jvms running on different jvms for the same "data-structure"
which would satisfy "equality" if checked on a single jvm. The data
structure is simply a hash-map.
Thanks,
Sunil.
--
You received this message because yo