From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: The poor state of documentation of pcase like things. Date: Fri, 01 Jan 2016 09:57:45 +0200 Message-ID: <83y4c9ag06.fsf@gnu.org> References: <20151216202605.GA3752@acm.fritz.box> <87io3m60bq.fsf@web.de> <877fk1nnk0.fsf@web.de> <8760zlue3j.fsf@gmail.com> <87vb7kajgv.fsf@web.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1451635041 463 80.91.229.3 (1 Jan 2016 07:57:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Jan 2016 07:57:21 +0000 (UTC) Cc: emacs-devel@gnu.org To: Michael Heerdegen , John Wiegley Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 01 08:57:15 2016 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 1aEuaJ-0000vT-HO for ged-emacs-devel@m.gmane.org; Fri, 01 Jan 2016 08:57:15 +0100 Original-Received: from localhost ([::1]:57548 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aEuaF-0000wz-GD for ged-emacs-devel@m.gmane.org; Fri, 01 Jan 2016 02:57:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47034) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aEuaC-0000wr-Su for emacs-devel@gnu.org; Fri, 01 Jan 2016 02:57:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aEua7-0003dj-OR for emacs-devel@gnu.org; Fri, 01 Jan 2016 02:57:08 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42573) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aEua7-0003dZ-Kt; Fri, 01 Jan 2016 02:57:03 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2820 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aEua6-0001hv-F1; Fri, 01 Jan 2016 02:57:02 -0500 In-reply-to: <87vb7kajgv.fsf@web.de> (message from Michael Heerdegen on Sun, 27 Dec 2015 00:17:04 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:197298 Archived-At: Btw, could someone please tell what are the benefits of using 'pcase' in snippets like this one: (pcase skip (`nil nil) (`0 t) (_ (setq i (+ i skip -1)) (funcall get-next-frame))))))) How is this different from using 'cond' in trivial ways? (I see quite a few of such uses of 'pcase' in the sources, and when I read them, I always wonder what is it that I'm missing about that code.) TIA