[r6rs-discuss] Hash function return value constraints
owinebar at gmail.com
Sat Apr 4 20:26:18 EDT 2009
On Sat, Apr 4, 2009 at 4:13 PM, leppie <xacc.ide at gmail.com> 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
> 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)
More information about the r6rs-discuss