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: Sun, 03 Jan 2016 05:47:31 +0200 Message-ID: <83si2f9ve4.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> <83y4c9ag06.fsf@gnu.org> <87bn95m9eg.fsf@fencepost.gnu.org> <5686CDFB.2010105@dancol.org> <83fuygcs5g.fsf@gnu.org> <56886E32.70305@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1451792868 25986 80.91.229.3 (3 Jan 2016 03:47:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Jan 2016 03:47:48 +0000 (UTC) Cc: michael_heerdegen@web.de, dancol@dancol.org, dak@gnu.org, emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 03 04:47:43 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 1aFZdu-0003bN-2P for ged-emacs-devel@m.gmane.org; Sun, 03 Jan 2016 04:47:42 +0100 Original-Received: from localhost ([::1]:40405 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFZdt-0002yh-EE for ged-emacs-devel@m.gmane.org; Sat, 02 Jan 2016 22:47:41 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41434) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFZdp-0002yQ-6K for emacs-devel@gnu.org; Sat, 02 Jan 2016 22:47:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aFZdm-0001Xf-1H for emacs-devel@gnu.org; Sat, 02 Jan 2016 22:47:37 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33638) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFZdl-0001Xb-UP; Sat, 02 Jan 2016 22:47:33 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2138 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aFZdk-0003DM-Tv; Sat, 02 Jan 2016 22:47:33 -0500 In-reply-to: <56886E32.70305@yandex.ru> (message from Dmitry Gutov on Sun, 3 Jan 2016 02:41:22 +0200) 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:197410 Archived-At: > Cc: michael_heerdegen@web.de, dak@gnu.org, emacs-devel@gnu.org > From: Dmitry Gutov > Date: Sun, 3 Jan 2016 02:41:22 +0200 > > On 01/02/2016 10:16 AM, Eli Zaretskii wrote: > > > Now that I know there isn't, I can convert such code to using 'cond' > > whenever I feel like it. Like we do with whitespace changes. > > FWIW, converting that kind of pcase form to a cond, to my eyes, would > look like replacing (when ...) with (if ... (progn ...))). The syntax of 'when' is nowhere as complex as that of 'pcase'.