bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#47992: [External] : bug#47992: 27; 28; Phase out use of `equal` in `


From: Daniel Mendler
Subject: bug#47992: [External] : bug#47992: 27; 28; Phase out use of `equal` in `add-hook`, `remove-hook`
Date: Sat, 24 Apr 2021 23:34:52 +0200

On 4/24/21 11:20 PM, Drew Adams wrote:
Shouldn't your argument be that closure equality should
_always_ be tested (testable) using just `eq'?  Is this
really about `add|remove-hook'?  Why would they be
special in this regard?

This could be discussed. But a change in equality would be much more impactful.

There are reasons why one would want to allow structural equality testing for closures. I don't see a problem with it if I opt-in explicitly by using `equal`. It is still the wrong equality for `add/remove-hook` which should be robust. And currently it is not.





reply via email to

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