From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philipp Newsgroups: gmane.emacs.bugs Subject: bug#47425: 26.3; `plist-get', `plist-put' should accept a TEST function Date: Sun, 28 Mar 2021 21:20:53 +0200 Message-ID: <0EBFBE59-A4C2-4C61-AD1B-A66E8B5F99CF@gmail.com> References: <87v99b5smv.fsf@gnus.org> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) 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="38064"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Nicolas Petton , 47425@debbugs.gnu.org, Stefan Monnier To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 28 21:22:12 2021 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 1lQazD-0009ox-Lh for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Mar 2021 21:22:11 +0200 Original-Received: from localhost ([::1]:55988 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQazC-0003zX-IX for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Mar 2021 15:22:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33632) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQaz4-0003xz-N7 for bug-gnu-emacs@gnu.org; Sun, 28 Mar 2021 15:22:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35518) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lQaz4-0000ME-Ei for bug-gnu-emacs@gnu.org; Sun, 28 Mar 2021 15:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lQaz4-0007GL-9F for bug-gnu-emacs@gnu.org; Sun, 28 Mar 2021 15:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Mar 2021 19:22:02 +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.161695926327849 (code B ref 47425); Sun, 28 Mar 2021 19:22:02 +0000 Original-Received: (at 47425) by debbugs.gnu.org; 28 Mar 2021 19:21:03 +0000 Original-Received: from localhost ([127.0.0.1]:47064 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQay7-0007F7-Bw for submit@debbugs.gnu.org; Sun, 28 Mar 2021 15:21:03 -0400 Original-Received: from mail-wm1-f49.google.com ([209.85.128.49]:34432) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQay5-0007EJ-Be for 47425@debbugs.gnu.org; Sun, 28 Mar 2021 15:21:01 -0400 Original-Received: by mail-wm1-f49.google.com with SMTP id n11-20020a05600c4f8bb029010e5cf86347so7687705wmq.1 for <47425@debbugs.gnu.org>; Sun, 28 Mar 2021 12:21:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=/0payXT+8omsvufYvYLQ+vWx2q5TZ4EPPQgZW/N9KS4=; b=LQ1U3Ns6m841y9P2wfm90aruKi02cEy6bklvzj1yxxAHJnot0CBf6CCbYKV22kL67S jUsU/sk6CMTk9D3Unu+uOaW9W8l42CCOWQSgFHVo9QfQdNXg3rTbUvHigyxDvl2ecykx KwWppa+o0HBIxSRXsV9mK8iudUJUX/N7pzQX59luUrl2B1SmzBUC6h4Vhk58FE5AdLUy q+X5ix/Ev5j8+UmA7nmAVjJGNWYvmM9Dc3gRr08Zr9mZ7EpgRov04g+U+L5YXeugkWi5 rGPbRW1x0i5VBjZfGfuPU5WFJp3YSKW3Izruh6F2/L2GHY8tw5UmK/5mZNjluFbztHyS iDhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=/0payXT+8omsvufYvYLQ+vWx2q5TZ4EPPQgZW/N9KS4=; b=W79iQxJSAicOq/iLYvxlnsmBQaVUmYPfoQFE4T2AgxLQ31YZZqgf0TmXKJXyO4uDsj maeqW65KCmClnJLXwRiRViwWI/xkBuAA4pvG2Rtw+3zV762LTVvGBOUe6LDGALVzAAyk zwgxEB1zg5EQdWbQ71vatYuD/yz0oUKDCo8hLn0KltOaS0Wa2mi5qnF8F2WPEOZN6CXP DGc6JNmciKdfLCgP28L25HEB8I+kHikFO8mYtwcuWg8PDbm8m8PVt5pWg0dQ7xYHhGDm lIshFpvQulUi7d9PPdJTVbaWJwDDkPiOmNnzJ3T3Wmoby0lQVVNFSY2SpZxUxn1ykSmC ERkg== X-Gm-Message-State: AOAM531mK0LLNz/3Nv0qFgPq9eL/SW9ft9xxs6/F0MBtQYEA3Q27KKvc rYXLy9y4/T/30CAIo5K3+dM= X-Google-Smtp-Source: ABdhPJxSu2Ip2k9Zg7Di+dmZhkZti/y8CwvaXUf9GU6LZsG40i/F6YV5POR2myb0glIW3HGGK5nUBQ== X-Received: by 2002:a05:600c:2947:: with SMTP id n7mr22242122wmd.61.1616959255396; Sun, 28 Mar 2021 12:20:55 -0700 (PDT) Original-Received: from philipps-macbook-pro.fritz.box (p5b13f5b4.dip0.t-ipconnect.de. [91.19.245.180]) by smtp.gmail.com with ESMTPSA id s3sm21042371wmd.21.2021.03.28.12.20.54 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Mar 2021 12:20:55 -0700 (PDT) In-Reply-To: <87v99b5smv.fsf@gnus.org> X-Mailer: Apple Mail (2.3654.60.0.2.21) 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:203206 Archived-At: > So does anybody have an opinion here? I think I'm in favour of adding = a > comparison function for all three `plist-*' functions. 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.=