From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#47425: 26.3; `plist-get', `plist-put' should accept a TEST function Date: Mon, 27 Jun 2022 13:31:57 +0200 Message-ID: <71C43639-B441-4BD1-93A0-C8DDE1389529@acm.org> References: Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15285"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Philipp Stephani , Nicolas Petton , Lars Ingebrigtsen , Drew Adams , Stefan Monnier To: 47425@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 27 13:34:02 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o5n07-0003Qw-Sb for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Jun 2022 13:33:55 +0200 Original-Received: from localhost ([::1]:59016 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5n06-0001fM-FB for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Jun 2022 07:33:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57718) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5mzG-0001e4-59 for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2022 07:33:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56157) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o5mzF-0001r9-Qk for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2022 07:33:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o5mzF-0001b8-O9 for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2022 07:33:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Jun 2022 11:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47425 X-GNU-PR-Package: emacs Original-Received: via spool by 47425-submit@debbugs.gnu.org id=B47425.16563295304992 (code B ref 47425); Mon, 27 Jun 2022 11:33:01 +0000 Original-Received: (at 47425) by debbugs.gnu.org; 27 Jun 2022 11:32:10 +0000 Original-Received: from localhost ([127.0.0.1]:50054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5myQ-0001I6-Dx for submit@debbugs.gnu.org; Mon, 27 Jun 2022 07:32:10 -0400 Original-Received: from mail1470c50.megamailservers.eu ([91.136.14.70]:34972 helo=mail102c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5myN-0001B8-JV for 47425@debbugs.gnu.org; Mon, 27 Jun 2022 07:32:08 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1656329520; bh=VABJxIuMXVC6cC7PiBv8/2fSYbiYiS3ueKZUMQB3rrg=; h=From:Subject:Date:Cc:To:From; b=D8fYZfW6HMNE5Dg/+rXyE0w4O/DXrrBlatqXrC8a+ynb8M+svgfOoykbHCAE59vus jrk+CoXpS7BSDjxrqyJXjQlomJdxUpgihlKwgeo/S3ikmaCHZaeMkZ16D2cttfa2XF OTQxaPc/ssNI7CvBNIXsI4ofntMvan1AhuCUjUbs= Feedback-ID: mattiase@acm.or Original-Received: from smtpclient.apple (c188-150-171-71.bredband.tele2.se [188.150.171.71]) (authenticated bits=0) by mail102c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 25RBVwuo109196; Mon, 27 Jun 2022 11:31:59 +0000 X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Origin-Country: SE X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:235435 Archived-At: > 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.=20 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.