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#70597: Problem in pcase-let? Date: Sun, 28 Apr 2024 11:22:37 -0400 Message-ID: References: <662d23bf.050a0220.a4e2f.3f45@mx.google.com> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4204"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Bruno Barbier , 70597@debbugs.gnu.org To: Marco Antoniotti Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 28 17:24:02 2024 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 1s16Nl-0000sH-Bf for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Apr 2024 17:24:01 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s16NV-0003A2-G4; Sun, 28 Apr 2024 11:23:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s16NT-00039a-Dj for bug-gnu-emacs@gnu.org; Sun, 28 Apr 2024 11:23:43 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s16NT-0008I0-5R for bug-gnu-emacs@gnu.org; Sun, 28 Apr 2024 11:23:43 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s16Nm-00007t-Ai for bug-gnu-emacs@gnu.org; Sun, 28 Apr 2024 11:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Apr 2024 15:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70597 X-GNU-PR-Package: emacs Original-Received: via spool by 70597-submit@debbugs.gnu.org id=B70597.1714317788449 (code B ref 70597); Sun, 28 Apr 2024 15:24:02 +0000 Original-Received: (at 70597) by debbugs.gnu.org; 28 Apr 2024 15:23:08 +0000 Original-Received: from localhost ([127.0.0.1]:50757 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s16Mu-00007B-22 for submit@debbugs.gnu.org; Sun, 28 Apr 2024 11:23:08 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:40856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s16Mr-00006B-AS for 70597@debbugs.gnu.org; Sun, 28 Apr 2024 11:23:06 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 1EE0510005D; Sun, 28 Apr 2024 11:22:40 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1714317759; bh=gsndjNMXZcu5vzD972ArjVmwn/PQ/gstol+9S03ffoU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=nNKqb+izjjd9OgQoYgZ/ldQGSN/HOdRUFDVm1IQzavbfZfoby9QAFkzTvB9TujPEY WDcFWsxmSuVBdqEUuAO8XGaIHsE3939SVWhA3QxpQ7TPMZ7wS0UVXuMWlbROqFUvx+ TMaj2HBX+LxbHPapeSZA9laWOvwFJVyAOFiQCuLwelq8X+2kpFmZbnDpaYWLAAoH88 R/Q4GvaTq09oZ+exQgm7zhL9Edi3xSLT3rFR1+feN2YoW9edKiws12Bibtn/b9RaEI QQfJRyWQ+xgbEqJc/KFswGXRppb9sY1tb3y6yEkKvYzH4kWafveNNTe18uaEUibUul 997FT2SlDz3Qw== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 1829E100035; Sun, 28 Apr 2024 11:22:39 -0400 (EDT) Original-Received: from pastel (unknown [45.72.201.215]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id E465F120708; Sun, 28 Apr 2024 11:22:38 -0400 (EDT) In-Reply-To: (Marco Antoniotti's message of "Sun, 28 Apr 2024 00:28:41 +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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:284092 Archived-At: > Pattern matchers do ... pattern matching. `pcase` is a pattern matcher. `pcase-let` is not: it performs "destructuring bindings". If you want to test if a pattern matches, then you want to use `pcase` or `pcase-exhaustive`, and not `pcase-let`. If you want a "one-branch `pcase-exhaustive` with a let-style notation", we could add such a thing of course, but I'd first like to see some evidence that it's useful in practice. Stefan