From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: pcase-if-let? Date: Thu, 29 Mar 2018 07:59:19 -0400 Message-ID: References: <871sg3eqi5.fsf@web.de> <0e8139b0-b59c-1d7e-29db-66170858f8ca@lanl.gov> <87woxvd947.fsf@web.de> <87605filw6.fsf@web.de> <60dc117a-7ee2-42d2-acbc-49dae9ec6ae1@default> <871sg3ijgf.fsf@web.de> <87woxvh2s4.fsf@web.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1522324654 7979 195.159.176.226 (29 Mar 2018 11:57:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 29 Mar 2018 11:57:34 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 29 13:57:29 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f1WBN-0001w8-MX for ged-emacs-devel@m.gmane.org; Thu, 29 Mar 2018 13:57:29 +0200 Original-Received: from localhost ([::1]:45586 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f1WDP-0006EG-Gb for ged-emacs-devel@m.gmane.org; Thu, 29 Mar 2018 07:59:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42594) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f1WDH-0006Dh-75 for emacs-devel@gnu.org; Thu, 29 Mar 2018 07:59:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f1WDC-0006Xi-7x for emacs-devel@gnu.org; Thu, 29 Mar 2018 07:59:27 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:50916) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f1WDC-0006Wu-0x for emacs-devel@gnu.org; Thu, 29 Mar 2018 07:59:22 -0400 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id w2TBxJCn017852; Thu, 29 Mar 2018 07:59:19 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 71156605C1; Thu, 29 Mar 2018 07:59:19 -0400 (EDT) In-Reply-To: <87woxvh2s4.fsf@web.de> (Michael Heerdegen's message of "Thu, 29 Mar 2018 07:24:59 +0200") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6253=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6253> : inlines <6528> : streams <1782598> : uri <2616801> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:224149 Archived-At: >> PS: Regarding the "unorthodox" shape of the pcase construct, you could >> generate an expression of the form (pcase (list E1 E2 ...) ((list P1 P2 >> ...) THEN) (_ ELSE)). > What's `list' - a new pattern type? If you write it like this, it looks > like parallel matching of the Pi patterns, though we need to match in > order for i=1,... Oh, right we need the `let*` kind of scoping. Stefan