John Harrop wrote:
> On Wed, Oct 28, 2009 at 9:35 PM, Alex Osborne wrote:
> 
>     Choosing some arbitrary magic cutoff point just
>     seems cause for trouble and much confusion.
> 
> For the specific case of hashCode, no; identical values must have 
> identical hashes but different values need not have different hashes. 
> Collisions due to the hypothetical cutoff get exponentially less likely 
> with each additional increment of 1 of the cutoff length.
Yeah, that's true, but I meant in the usual context where you fall back 
to equality in the event of a collision (like, as you say, sets and 
maps).  I think it would be very confusing if when you put an infinite 
sequence in one set it works (because there's no collision so it uses 
the cutoff) while putting the exact same sequence in a different set it 
hangs (because of a collision it falls back to equality).  I can imagine 
that being a nightmare to debug particularly because in most programs it 
will only happen very rarely.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to