Re: [PATCH] Implement `equal' for hash tables
Eli Zaretskii <[email protected]> Wed, 05 Aug 2026 15:45:45 +0300
| Newsgroups | gmane.emacs.devel |
|---|---|
| Message-ID | <[email protected]> |
> From: Sean Whitton <[email protected]> > Date: Wed, 05 Aug 2026 10:36:33 +0100 > > Nick Alcock [04/Aug 9:16pm +01] wrote: > > Hash tables are equal if they have equal atoms, weakness, and equality > > and hash functions. > > > > (This also means that equal of structures which contain hash tables is > > useful now, too, which is really the reason I implemented this: right > > now, hash tables are a sort of poison pill which render any object into > > which they are inserted unequal with all others. No more.) > > Is it useful in a programming language for hash table objects to be > directly comparable like this? I'm not sure that it is. Exactly my thoughts. Perhaps showing a real-life use case where this is useful would help us understand the need. > Adding Stefan for comment.