|
From: | Mattias Engdegård |
Subject: | bug#47425: 26.3; `plist-get', `plist-put' should accept a TEST function |
Date: | Mon, 27 Jun 2022 13:31:57 +0200 |
> I'm not a fan of this since it would mean that these functions will no longer > be side-effect-free. Adding a function argument to a function means that the > function can no longer really promise anything, so it leads to code that's > harder to reason about. No fan of it either. A plist is not intended as a general-purpose data structure; the `eq` key comparison is pretty much built in. The cost of adding an equality predicate is not huge but also not really motivated.
[Prev in Thread] | Current Thread | [Next in Thread] |