[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Comparing hash table objects
From: |
Ihor Radchenko |
Subject: |
Re: Comparing hash table objects |
Date: |
Sun, 12 Jun 2022 17:16:36 +0800 |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> 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).
This might be an option.
It would then help if cl-defstruct supported a default comparator
setting the "equality driver" to be used by default when comparing the
objects using equal.
Best,
Ihor
- Comparing hash table objects, Ihor Radchenko, 2022/06/08
- Re: Comparing hash table objects, Andreas Schwab, 2022/06/08
- Re: Comparing hash table objects, Ihor Radchenko, 2022/06/08
- Re: Comparing hash table objects, Richard Stallman, 2022/06/10
- Re: Comparing hash table objects, Ihor Radchenko, 2022/06/11
- Re: Comparing hash table objects, Stefan Monnier, 2022/06/11
- Re: Comparing hash table objects,
Ihor Radchenko <=
- Re: Comparing hash table objects, Sam Steingold, 2022/06/12
- Re: Comparing hash table objects, Stefan Monnier, 2022/06/13
- Re: Comparing hash table objects, Sam Steingold, 2022/06/13