[cdr-discuss] CDR-2 -- register-test-designator vs. keyword parameters
Ingvar
ingvar at hexapodia.net
Wed Dec 6 08:13:32 UTC 2006
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
More information about the cdr-discuss
mailing list