On Sat, Apr 4, 2009 at 4:13 PM, leppie <[email protected]> wrote: > What is the rationale for making the hash value non-negative? > > From the various answers/discussions below I can only deduce that there is > none. > > From a performance point of view, one should preferably only return values > within the fixnum range. > > From an acceptance point of view, the hashtable implementation should > expect any exact integer as the return value for the provided hash function. > > From yet another view, one's hash function should be really fast, and need > not to have extra constraints placed on it. >
Leppie's hash function: (lambda (x) -1) Caveat programmer.... Lynn _______________________________________________ r6rs-discuss mailing list [email protected] http://lists.r6rs.org/cgi-bin/mailman/listinfo/r6rs-discuss
