emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Comparing hash table objects


From: Stefan Monnier
Subject: Re: Comparing hash table objects
Date: Sat, 11 Jun 2022 12:04:46 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

> However, it will not help with the problem of comparing objects
> containing hash tables. Unless those obejcts also define special
> comparison function (which is inconvenient).

This is an instance of a fairly general problem with Lisp's equality
tests (and it's not really specific to Lisp, admittedly).

Maybe a half-sane way to solve this problem is to provide a generic
"equality driver" which takes an argument specifying which objects to
compare for structural equality (i.e. where to keep recursing).


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]