[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: hash table key comparisons - always eq?
On Tue, Jan 08, 2002 at 12:19:23PM -0700, Matthew Flatt wrote:
> Quoting David N. Welton:
> > It's not possible to change the way in which hash table keys are
> > compared? I would like to use equal? [...]
>
> In v200, use
>
> (make-hash-table 'equal)
>
> v103 hash tables only support `eq?'.
Is there some reason these still aren't completely general, so that the
user could provide custom hash and equality functions (eg. to implement
case-insensitivity)? Efficiency shouldn't be an issue, since a special
optimized implementation could still be provided for the
eq-hash-code/eq? -case.
Lauri Alanko
la@iki.fi