
6 Dec
2006
6 Dec
'06
8:13 a.m.
Chris Dean writes:
Why does genhash use the technique of registering hashing functions and equality predicates instead of using keyword parameters?
Primarily so that a "sufficiently clever" implementation can go forth and analyse the hash function and equality test predicate at time of registration and possibly construct custom classes and methods for it. Secondarily, to reinforce the coupling between an equality test predicate and a hash function. //Ingvar