From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#49809: [PATCH] Add macro 'pcase-setq' Date: Tue, 10 Aug 2021 05:13:11 +0200 Message-ID: <87eeb22drs.fsf@web.de> References: <07ad5892-3343-4c35-00e3-9753bca5f67b@protonmail.com> <87im0fwjep.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16888"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Okam , 49809@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 10 05:14:08 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 1mDIDQ-0004E0-KD for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 10 Aug 2021 05:14:08 +0200 Original-Received: from localhost ([::1]:50870 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDIDP-0001qb-6e for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 09 Aug 2021 23:14:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43216) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDIDK-0001qS-A7 for bug-gnu-emacs@gnu.org; Mon, 09 Aug 2021 23:14:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46593) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDIDK-0005RD-33 for bug-gnu-emacs@gnu.org; Mon, 09 Aug 2021 23:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mDIDJ-0005da-Sy for bug-gnu-emacs@gnu.org; Mon, 09 Aug 2021 23:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 Aug 2021 03:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49809 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 49809-submit@debbugs.gnu.org id=B49809.162856521821633 (code B ref 49809); Tue, 10 Aug 2021 03:14:01 +0000 Original-Received: (at 49809) by debbugs.gnu.org; 10 Aug 2021 03:13:38 +0000 Original-Received: from localhost ([127.0.0.1]:58139 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDICs-0005co-C7 for submit@debbugs.gnu.org; Mon, 09 Aug 2021 23:13:38 -0400 Original-Received: from mout.web.de ([217.72.192.78]:33343) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDICn-0005cW-02 for 49809@debbugs.gnu.org; Mon, 09 Aug 2021 23:13:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1628565193; bh=qDwyZVSETIG/M9FSV5w7ZM9xppRQapLaIbhYeSL+XOo=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=OhMqQ5jz18+18P0QktCC1+wytTPxAF/ZPM1MHLTTJuM/Dn1iclC8xcUwY2uW4MkBM IPoE1nadktih266Xe3GI5Pp/9itiAvKclI7BHXYd3Fsh5p7C6JmIGDElrxbrhqPa4C S1YOViJsImbWqWEU1i3cecMFBcUkNs/flsD1SSbQ= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([88.66.201.45]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0Lmu2K-1mlFye3UHU-00hA1F; Tue, 10 Aug 2021 05:13:12 +0200 In-Reply-To: (Stefan Monnier's message of "Mon, 09 Aug 2021 08:51:21 -0400") X-Provags-ID: V03:K1:BLt10lwht7m/lk2gIDbyG02vaJEjr4RelYxrLGystxXrZGARqJa ATm7/rFHVbKqlvEbuV2VTn/yJsvPRsCznW2DH/7xgM2jHZ8lcROxGEuwJAXmhfJeF1iI8U2 4sDY60HQY6XrXHHgU71c2i+3ZfgDKAXvtw6BMs8A7/U8FLGFHSWnNgnnu/VsUQovIyZumCh 0DK5lO6ynza8HpId1tRFw== X-UI-Out-Filterresults: notjunk:1;V03:K0:xa7N7O+BTE8=:2C4HetUKGkgz9lC1oaCxc7 nUV9Kby5K/VvWC/IG8/2808hYn1l69RYRjd9ghHxQJRMKSPb8kAgNXYfb4IlgeEtjAICDF6s9 vXT16+ejc78OVwX5oXArdzwbr5qE4G8qEK/dr22z3eUOOhCL5li1ZLUcJ9Vd1xEmzzjvvE72u y7s83SRIjR6iHWBq1MCOWLvPFleOQRV4wfMhuzRRFjng9fclu8RWbr13MAIAbfqfzij2bDK3A CEIcE+hDWpypknDEX3rbkAQSqSf1HXXZGwKiZc+PGrZ8a/ydsczHJD5iF0p0WHjnzXF1FLAR1 JqrDQt+U0YKwvvcPSFpNO1k497Xc01y3C0j7IJ3vEGuaiq/gwkasQcJbq73uZivJj+Hzz0w1E 0E8yDoO1jX7rCUMhjj1AjB76zEaIeeX1XewZx7LqfEsA3LnwGllcU0oc4hggE52mNfJpF4ocn 8oLEJVWVQxay1H7kTNPEQMvIU+JnwihYDELPML0d52znv/eoTY/IvzeAIn6h4bR3cB4AitJgm opF/To8P1VYoZwoHTIsxzhfJ+5eMnjC6OHdxi7nL7xXmo96uKuRjF0orDuxN23BR3v7IjZHvo SzEqqkJ4PMK220xya/fg3jnjVuUjJ7c4UOWZEAF8fu5v0xokM8yMiPdnrJme3CjbyMAmUzKBv mzm6FV+nWgKrQjjUvVGJb7BYqdBcWhUWoW9CdD/6X7H/RcdeDDK0+id7y2Yqc+clAu0foQyTK LTD884jttymIoSz9NfBpKkMfRMvY7qea0SMcca6VqUvouHqz3XQq9Xs1WADSZX6ql6obHYu+ 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:211468 Archived-At: Stefan Monnier writes: > > I don't recall why it was not achievable to make `pcase-let' > > reliably error for non-matching patterns. > > The main difficulty is to convince me that it's a good idea. Oh - that thing again ;-) Writing down pcase patterns is a bit more error-prone for quite a few people than writing other Lisp expressions (agreed?). If non-matching patterns don't error and silently just cause undefined behavior, it's later harder to find out what went wrong and where. Problems may show up only much later and then it's harder to locate the cause. Undefined behavior has no use per se, unless it has a larger impact on efficiency. And why again do you think it is not a good idea? Michael.