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: The poor state of documentation of pcase like things. Date: Sun, 03 Jan 2016 01:19:55 +0100 Message-ID: <87si2fwm38.fsf@web.de> 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> <87r3i0l6oq.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1451780427 6943 80.91.229.3 (3 Jan 2016 00:20:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Jan 2016 00:20:27 +0000 (UTC) Cc: Eli Zaretskii , Daniel Colascione , emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 03 01:20:18 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 1aFWPA-0007Ry-Gg for ged-emacs-devel@m.gmane.org; Sun, 03 Jan 2016 01:20:16 +0100 Original-Received: from localhost ([::1]:40134 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFWP9-0002PI-Px for ged-emacs-devel@m.gmane.org; Sat, 02 Jan 2016 19:20:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40584) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFWP6-0002P7-Ry for emacs-devel@gnu.org; Sat, 02 Jan 2016 19:20:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aFWP2-00048W-QT for emacs-devel@gnu.org; Sat, 02 Jan 2016 19:20:12 -0500 Original-Received: from mout.web.de ([212.227.17.11]:54079) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFWP2-00048S-Hd; Sat, 02 Jan 2016 19:20:08 -0500 Original-Received: from drachen.dragon ([90.186.1.98]) by smtp.web.de (mrweb101) with ESMTPSA (Nemesis) id 0LwHxK-1aAcct2zPC-01840N; Sun, 03 Jan 2016 01:19:57 +0100 In-Reply-To: <87r3i0l6oq.fsf@fencepost.gnu.org> (David Kastrup's message of "Sat, 02 Jan 2016 09:35:49 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Provags-ID: V03:K0:rsCR3XVZmbSHYYYGlBmo/8R+jAHjjCGovYkB7hq7rQR92q5Fn16 ZQbUF7BZlC/bAQpJ627DoJXBKARGPqAOFmFsSjbcsu+SZzgieBx6C/nzNt4wCtIlEaioMoQ je2+crgL3FnqzP9KkhfYgx8oTNv6QOJpOspvyb7YTCnaosnwofcJczmUS6oxaTRWvGgG0yg nHRUXELOQMHxi21DSvQvw== X-UI-Out-Filterresults: notjunk:1;V01:K0:DpII336dicM=:Wo+rVTf1nAiBAGP1Ynqpc6 oBEk3sks5sse5Bb6onWTF8qbldUKT+AKinn+vs1zSpLL2pRsb00XF/MWkrdwQnglUieDXKnw9 PAcuHFpCVscEUEwEp5SPk5ewYXs27oJSoO26q8rKayD+9taIcKRzQcqCj8X24ZRPauTEgBk+0 lKXJCXcrfZxEDc42aZf0cD5+XLJmtYF6TClAdy00TsvjlTzIRDPo91Vhpgp8Ex3pqqmIH7Unq sdjQB/tph6PyIs9I2vTpUw31i9Z+RtWsFh1ROAhqExQnjyz9Wf9Aurv5AMtFhjkXN0PiFO/Rz T+Ejg1nphBoK96KKNap1cSqT4Pt62c61l6UqLrj8Vsovyqwkcwdvty1+W96SDIiO+tNH1GI7n h17KC2jzCMl3dgDETiVw4BS2SfcRHDNk+RgtolA5EbCqfeAsMI3OVtr70EzzcesouXRX7SRod ji0j2sDyPc8xUoMT12UwWNh59TFDTFSvQb1SPnB5JdWcGVesFvIRQ9OBH/1h9p6oXuZMCZOzK FDxZx3YpKZFYNuYUtXllplCIC41XRYIwXOmmrJ6XDinUGjT1unyt32hhBq0iLRBY/Drh4KpXI zdhrLQTuf6CNGNzvnMYywpP5E2WqBhqnzSBuu13MIH8iiiSQlMXiy1t1kBj4td7LyxGYr7r4K e3o4m2v7DQqA3cBLdv8WerZlZFrS+3xgClqGNcbspNXPY27j0yXPqOkmeOUWu53Fu9pNvh0Ol r/A7vpVh1+RKr57ss7//H/lShVVUPCgAJYPWI+0yzk4AZ8Jc62mUwISZr4gJR2ZifV0yu/tR X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.11 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:197392 Archived-At: David Kastrup writes: > Some of the quoted pcase examples indeed felt like the "if your > preferred tool is a hammer, every problem looks like a nail" > phenomenon. Ironically, the same applies to Emacs itself ;-) > There certainly is a case for liberal use of complex complexity-taming > constructs (for example, overall I can appreciate how cl-loop > straightens out a lot of awkward loop constructs even though its syntax > is not really Elisp-like). But when a simple construct is a perfect > fit, it's not helping understanding. I don't see how a pcase used like a cl-case - as in the quoted example - is any harder to read or understand. And of course it has also advantages to use pcase in such cases. If you want to change the code or try things and you suddenly want a feature from pcase, you don't have to rewrite the whole thing. It just...arguable what you prefer. What I find a bit irritating is this seemingly upcoming kind of agreement "Please, let's all avoid this thing, ok? - it's frightening!" I read between the lines. Sorry if my impression is wrong. Michael.