From: Eric B. <er...@go...> - 2008-09-30 09:34:07
|
Colin Paul Adams wrote: > Given such classes, I don't see the need for `set_hash_function' in > DS_HASH_TABLE. It seems to me that it is only muddying the waters to > have a class that is specific to HASHABLE, and then not use that property. More precisely, `hash_function' was initially introduced because the feature `hash_code' of DOUBLE is very bad. So it was more a workaround than a new functionality. And then, it was used to provide case-insensitive hash codes for strings. It would be indeed better (and more reusable) to have different classes. -- Eric Bezault mailto:er...@go... http://www.gobosoft.com |