[r6rs-discuss] Hash function return value constraints

John Cowan cowan at ccil.org
Fri Apr 3 15:37:27 EDT 2009


r6rsguy at free-comp-shop.com scripsit:

> So why should a hash value be negative?

Already mentioned:  to improve by a factor of 2 the chance that a hash
code of a given size is a fixnum.

-- 
A rose by any other name                            John Cowan
may smell as sweet,                                 http://www.ccil.org/~cowan
but if you called it an onion                       cowan at ccil.org
you'd get cooks very confused.          --RMS



More information about the r6rs-discuss mailing list