[r6rs-discuss] Hash function return value constraints
xacc.ide at gmail.com
Fri Apr 3 04:34:14 EDT 2009
The R6RS states:
*"Hash-function* should accept a key as an argument and should return a
non-negative exact integer object."
This only the only place that mentions a non-negative integer.
What is the rationale for making the hash value non-negative?
By constraining the output, you are limiting the usage of fixnums and might
have to resort to big nums.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the r6rs-discuss