From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.devel Subject: Re: Question on pcase Date: Fri, 23 Oct 2015 16:14:42 +0200 Message-ID: <87oafp659p.fsf@web.de> References: <871tcngdv2.fsf@gmail.com> <87k2qe1u09.fsf@web.de> <83r3kmrtat.fsf@gnu.org> <87r3kl22zk.fsf@web.de> <837fmdzpf2.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1445609720 31537 80.91.229.3 (23 Oct 2015 14:15:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Oct 2015 14:15:20 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 23 16:15:10 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 1Zpd7S-0005pJ-EU for ged-emacs-devel@m.gmane.org; Fri, 23 Oct 2015 16:14:58 +0200 Original-Received: from localhost ([::1]:38817 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpd7R-0001K7-Ba for ged-emacs-devel@m.gmane.org; Fri, 23 Oct 2015 10:14:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59078) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpd7M-0001Hp-Ix for emacs-devel@gnu.org; Fri, 23 Oct 2015 10:14:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zpd7L-0007Ok-LU for emacs-devel@gnu.org; Fri, 23 Oct 2015 10:14:52 -0400 Original-Received: from mout.web.de ([212.227.17.12]:57550) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpd7G-0007L4-69; Fri, 23 Oct 2015 10:14:46 -0400 Original-Received: from drachen.dragon ([90.186.0.245]) by smtp.web.de (mrweb102) with ESMTPSA (Nemesis) id 0M8zSL-1Zg3PV1PWH-00CNi7; Fri, 23 Oct 2015 16:14:44 +0200 In-Reply-To: <837fmdzpf2.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 23 Oct 2015 16:26:41 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Provags-ID: V03:K0:Vi1bhKXF50WcrGCx/Np2ykgm3nHGT8Y5ylmHYLzCsXSszfyY6J/ dMcS/nRzhkgLrTxMhW/BM6qOnm9dARS0f+pVxLrHBr0Z80uZUvGfEhKxMKXGb9ZnLVoLONw XzZpL61HDwHorA1IfLpJNoCYqPL1m4sSfRA2yMX5shnqxkcLLwnCUPieEdlFA6acOPowVXb Y2iWb3BlMS6o0kU0XVCGQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:ILfuQsT9CvY=:wNnFm3jB2RIuwQDH1k7W9L qarBGCVcXjMWI+iOHqV39WBHm58d4FGAtmhL6MPDGrwYD7QkJx00MfpwDF7l2QG/Tg7vqltOa 3tkD+goYCtA2LVM3kQ4Pp/lE30kRc+6bKoCKxPnThjWGIG3DLzjIN532qU0OZWM8In/3oO65P Vng5Eb7dxB1+t2qcNyJkdhQivN1JvAWUzWgmAaweUjspYDwAOiFVwTbwEUDeO1nPRa0yy+1cv 8gFUyJUPzNQrakzOxOWLCNHL7JlrQ1NBCsmnaOA8WUmiPWiHzv1fF/XNOdE046WkjJSZH+b9x r3Ohri9mBBHSOLn0i8nxm3ePPdEFn6saVVmpWhDBcLwSESevXLVED0UYIdry1rteZkUw4b9pa 6q86r/yxzRmJlGafJNt5f+ILpPL1mx659qDgMG3ZfIVV3fJVST5FVoaS2U/AFV4/Kj45NP5Lv 2tfWst6fhvW1vd/P/RgBnUpbLhs31PJKhgvWKmtlbj4HEjqM6TlMwUbUocBwD+CG+/6fYc1Zl t2vPaTDY7FzOsOXZ6e+lEmB9sMx+1qHHxzYPnzQ5OssqXtdaad9fAJ8e/pCW+8YcVgXTeSAdD Swc5+ndJ88ZYdtAY3lVfLJG4Wti3bJEXfLO6ho61PHnMdXCvXnzb0K9ZQIgmSU44Qaz/CkOTy PlmN86SaapDLWoGC9kG/y8rIj9GY9p4VUFVAj9pUMYgXuwkFkX2VqFVEuHxU9E/t9trL0C65M Bx+dBvDYaTU28Ucc/ZmiM3B01QciVMLF29cgtJwg0LNeFzs0dMtKOJxKSG3aa896l0Oghwr+ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.12 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:192491 Archived-At: Eli Zaretskii writes: > > Possible - maybe. Useful: IMHO no. `pcase' is simple and easy to > > learn. > > Evidently, at least one developer found it daunting. I found it daunting too before I tried to learn it. > > It just looks a bit frightening and strange at first. I would > > rather improve documentation or write an easy intro than invite > > people to avoid learning an excellent tool. > > How about doing both? Maybe that will prompt people to learn about > pcase rather than hate it and stay away of it? Sure. Let me think about what would make sense. I think we should first write some simple guide to understand pcase. If anything more is needed then, ok, let's see what this is. For now, the "demystify" thing is the best thing I can offer for someone who doesn't want to learn it. The problem here is that the semantic of `pcase' is so many-sided. You can use it like `let'. You can use it like `cond'. You can use it like `case'. You can use it like `destructuring-bind'. All combined, and more. So there obviously must be a quite a bit of stuff to learn and remember about pcase, and you have to practise it a bit. Michael.