From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: pcase-dolist Date: Fri, 10 Jul 2015 14:51:51 -0400 Message-ID: References: <87wpyaet7r.fsf@web.de> <87y4iqh7x0.fsf@web.de> <87oajmld49.fsf@gnu.org> <87oajlyif9.fsf@gnu.org> <87a8v53wll.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1436554450 29649 80.91.229.3 (10 Jul 2015 18:54:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Jul 2015 18:54:10 +0000 (UTC) Cc: emacs-devel@gnu.org To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 10 20:53:59 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZDdQr-0001V2-S7 for ged-emacs-devel@m.gmane.org; Fri, 10 Jul 2015 20:53:58 +0200 Original-Received: from localhost ([::1]:45833 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDdQr-00037Y-At for ged-emacs-devel@m.gmane.org; Fri, 10 Jul 2015 14:53:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38147) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDdQo-000370-15 for emacs-devel@gnu.org; Fri, 10 Jul 2015 14:53:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZDdQk-0006tk-Rt for emacs-devel@gnu.org; Fri, 10 Jul 2015 14:53:53 -0400 Original-Received: from mercure.iro.umontreal.ca ([132.204.24.67]:45227) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDdQk-0006tf-Nh for emacs-devel@gnu.org; Fri, 10 Jul 2015 14:53:50 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 6AB899C18C; Fri, 10 Jul 2015 14:53:50 -0400 (EDT) Original-Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 927621E5B94; Fri, 10 Jul 2015 14:53:26 -0400 (EDT) Original-Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848) id 00EE2B414E; Fri, 10 Jul 2015 14:51:51 -0400 (EDT) In-Reply-To: <87a8v53wll.fsf@web.de> (Michael Heerdegen's message of "Thu, 09 Jul 2015 22:27:34 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82, MC_TSTLAST 0.00) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 132.204.24.67 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:187799 Archived-At: > Good argument. OTOH, if you _want_ to distinguish e.g. a two from a > three element list, you will have to use something like `(,a ,b . ,r) > and test whether r is nil. No: pcase-let is for "destructuring", not for "distinguishing". IOW if you want "to distinguish e.g. a two from a three element list" you want to use `pcase'. > Mmh. Anyway, pcase and pcase-let should > at least behave the same at the end I think... Then what would be the benefit of having `pcase-let'? Stefan