From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#47425: 26.3; `plist-get', `plist-put' should accept a TEST function Date: Mon, 27 Jun 2022 08:18:04 -0400 Message-ID: References: <71C43639-B441-4BD1-93A0-C8DDE1389529@acm.org> <87edzawcv8.fsf@gnus.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25622"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , Philipp Stephani , Nicolas Petton , 47425@debbugs.gnu.org, Drew Adams To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 27 14:27:43 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 1o5nqA-0006Wp-Vu for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Jun 2022 14:27:43 +0200 Original-Received: from localhost ([::1]:45656 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5nq7-0000h2-A8 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Jun 2022 08:27:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43198) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5nhm-0004am-CO for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2022 08:19:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56301) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o5nhl-0002ix-Nw for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2022 08:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o5nhl-0005B6-K6 for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2022 08:19:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Jun 2022 12:19: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.165633230019834 (code B ref 47425); Mon, 27 Jun 2022 12:19:01 +0000 Original-Received: (at 47425) by debbugs.gnu.org; 27 Jun 2022 12:18:20 +0000 Original-Received: from localhost ([127.0.0.1]:50192 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5nh6-00059q-Fo for submit@debbugs.gnu.org; Mon, 27 Jun 2022 08:18:20 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:37852) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5nh1-00059V-4N for 47425@debbugs.gnu.org; Mon, 27 Jun 2022 08:18:18 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 35CA7100169; Mon, 27 Jun 2022 08:18:09 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id D3E39100121; Mon, 27 Jun 2022 08:18:07 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1656332287; bh=r9Jl0P2UDWR94MlIUhjxsdECW4ez06ADLpL0FuxT3/I=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=hCJ4ELkLrDnFzqTvu3YeD2OiZE3TcmJ3fLyeHalXip5HWgSKwCjFuElQkZ/9zIkF2 /9C/K5NAM/EueYTBIcXAZAn+ojF/WVJCaz5W5W0v2n5MhSLdTbKY0lTl9x8dsAHQ7d gsnOFkleXALngX36/QD/XaIuGSACQq1LlytTefP4jW/UQroRbdFtXlUNCiCh+OSbLx mIsQgUbg7jKgQZ3DKr5zGObicaTUQM6u2Zx0JaGmoBKMSmz9atr/uCo9M5STAEgdZM 8p844xORO3NppexagtAZoEj+ykvSvp6PuK74I7fKvLp9vR9tVHoNLvBil3s/3Sio8t Y1ZCnZXdQB+tQ== Original-Received: from alfajor (smb-adp04.hotspot.hub-one.net [213.174.99.154]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id A04E012029D; Mon, 27 Jun 2022 08:18:06 -0400 (EDT) In-Reply-To: <87edzawcv8.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 27 Jun 2022 13:43:23 +0200") 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:235439 Archived-At: Lars Ingebrigtsen [2022-06-27 13:43:23] wrote: > Mattias Engdeg=E5rd writes: >> The cost of adding an equality predicate is not huge but also not >> really motivated. > The motivation is greater symmetry with assoc and friends. That is, > people have been forced to use alists where they'd more naturally prefer > to use plists because of the eq restriction. Then again, plists should never have existed, in my book. They're just strictly worse than alists as datastructures. Their only advantage is that sometimes when you write them by hand it they're somewhat more compact (fewer dots and parentheses) but for those cases `eq` is always good enough in my experience. I'd be curious to hear of a use case where plists are better than alists while at the same time requiring a non-eq comparison. Stefan