From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.tangents Subject: Re: The poor state of documentation of pcase like things. Date: Sun, 3 Jan 2016 15:33:40 +0200 Message-ID: <56892334.4000106@yandex.ru> 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> <83si2f9ve4.fsf@gnu.org> <56889EC3.3040108@yandex.ru> <877fjrkpdf.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1451828039 5099 80.91.229.3 (3 Jan 2016 13:33:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Jan 2016 13:33:59 +0000 (UTC) Cc: michael_heerdegen@web.de, Eli Zaretskii , dancol@dancol.org, emacs-tangents@gnu.org To: David Kastrup Original-X-From: emacs-tangents-bounces+get-emacs-tangents=m.gmane.org@gnu.org Sun Jan 03 14:33:54 2016 Return-path: Envelope-to: get-emacs-tangents@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 1aFinA-0008DA-6Q for get-emacs-tangents@m.gmane.org; Sun, 03 Jan 2016 14:33:52 +0100 Original-Received: from localhost ([::1]:41674 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFin9-0001fc-8s for get-emacs-tangents@m.gmane.org; Sun, 03 Jan 2016 08:33:51 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55273) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFin6-0001ex-RR for emacs-tangents@gnu.org; Sun, 03 Jan 2016 08:33:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aFin1-00045F-SS for emacs-tangents@gnu.org; Sun, 03 Jan 2016 08:33:48 -0500 Original-Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]:38892) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFin1-00045B-Ln; Sun, 03 Jan 2016 08:33:43 -0500 Original-Received: by mail-wm0-x230.google.com with SMTP id b14so151511740wmb.1; Sun, 03 Jan 2016 05:33:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=37N7QO3EJzLReCAWyqYR9fZ136OLavIsSBZ8n0dd0NM=; b=wck7OGUl7k7isaGRb8qjvAZNzGSNnrRiV7qr630L8bL4ZzseTuAUWn4nPfeQ+fVpq1 cf6Xusdjoo+Plm7jzYLPzJ6HKgY77Gh+Xjarkfx78YrE2E5LOa/B+Q/nm+1ewSE+LD80 ryJ7oCRMLj1EGr8Nv60G/q0UCMGcnNP/0nbwP5UnoFV1HpjQJWhSCFE6HyfSA6CpDxi4 tz42CWG6VPxhipxgL7iovbkP3MOMky1h53xSoB56kjQ+fbm98DUrXrmjqHnLigWgzTbj KYpVsVSxDCydSjQCTAFd4o1UMWdptBvrq3ockGMGBHsqh+vY02nJwyZTsgKIasA7/y7u P+tQ== X-Received: by 10.28.90.67 with SMTP id o64mr31188500wmb.38.1451828022881; Sun, 03 Jan 2016 05:33:42 -0800 (PST) Original-Received: from [192.168.1.2] ([185.105.175.24]) by smtp.googlemail.com with ESMTPSA id q4sm81622391wja.6.2016.01.03.05.33.41 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 03 Jan 2016 05:33:41 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Thunderbird/43.0 In-Reply-To: <877fjrkpdf.fsf@fencepost.gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::230 X-BeenThere: emacs-tangents@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-tangents-bounces+get-emacs-tangents=m.gmane.org@gnu.org Original-Sender: emacs-tangents-bounces+get-emacs-tangents=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.tangents:61 Archived-At: On 01/03/2016 11:02 AM, David Kastrup wrote: > Uh what? Whether pcase does not help with simple cases should have > little bearing on whether it helps with more complex cases. But it does. It takes less code, and follows the common design of pattern matching, which isn't hard to understand and internalize. In the more complex cases, the syntax may have some thorns, but not in cases where you could replace it with `cl-case'. So if a person refuses to use it, *and* would choose to rewrite it using `cond' on any occasion, that tells me they won't reach for it in the more complex cases either. > If it does not help with simple cases, and it does not help with complex > cases, yes, that would be the obvious best choice. I don't think that > this the argument you intend to make. And I didn't. > You are arguing as if we were paid for its use, not as if it had > inherent value. If *you* use it, *I* get to read it, and enjoy the succinctness and readability. And it's easier to extend later.