GNU bug report logs - #63671
Add function to test equality of hash tables

Previous Next

Package: emacs;

Reported by: Joseph Turner <joseph <at> breatheoutbreathe.in>

Date: Tue, 23 May 2023 19:41:02 UTC

Severity: wishlist

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Mattias EngdegÄrd <mattias.engdegard <at> gmail.com>
To: Joseph Turner <joseph <at> breatheoutbreathe.in>
Cc: 63671 <at> debbugs.gnu.org
Subject: bug#63671: Add function to test equality of hash tables
Date: Wed, 24 May 2023 22:34:11 +0200
[Message part 1 (text/plain, inline)]
24 maj 2023 kl. 19.27 skrev Joseph Turner <joseph <at> breatheoutbreathe.in>:

> Would extending `equal' to handle hash tables be generally useful?

It would, but doing so would be very risky at this point since it would change long-standing semantics.

We could make an augmented version of `equal` but what we really want is one that works for user-defined types (see Ihor's reference to a previous discussion).

Anyway, here's an old patch I had lying around, in case we decide that we do need a shoddy equality predicate for hash tables only.

[hash-table-equal-p.diff (application/octet-stream, attachment)]

This bug report was last modified 1 year and 313 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.