From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nic Ferrier Newsgroups: gmane.emacs.devel Subject: Re: A protest against pcase, pcase-let, pcase-let* Date: Wed, 01 Apr 2015 13:04:23 +0100 Message-ID: <87k2xw12d4.fsf@ferrier.me.uk> References: <20150331180029.GF2871@acm.fritz.box> <87d23ob247.fsf@newcastle.ac.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1427889909 17070 80.91.229.3 (1 Apr 2015 12:05:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Apr 2015 12:05:09 +0000 (UTC) Cc: Alan Mackenzie , emacs-devel@gnu.org To: phillip.lord@newcastle.ac.uk (Phillip Lord) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 01 14:05:00 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 1YdHO9-0008QO-PU for ged-emacs-devel@m.gmane.org; Wed, 01 Apr 2015 14:04:53 +0200 Original-Received: from localhost ([::1]:52032 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdHO9-0001Wc-3d for ged-emacs-devel@m.gmane.org; Wed, 01 Apr 2015 08:04:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34060) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdHNp-0001SW-6y for emacs-devel@gnu.org; Wed, 01 Apr 2015 08:04:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YdHNj-0007K9-Uh for emacs-devel@gnu.org; Wed, 01 Apr 2015 08:04:33 -0400 Original-Received: from static.17.66.46.78.clients.your-server.de ([78.46.66.17]:35499 helo=po1.ferrier.me.uk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdHNj-0007IO-PJ for emacs-devel@gnu.org; Wed, 01 Apr 2015 08:04:27 -0400 Original-Received: from nicferrier-dell-xps (140.35.155.90.in-addr.arpa [90.155.35.140]) by po1.ferrier.me.uk (Postfix) with ESMTPA id 75D5BAC0023; Wed, 1 Apr 2015 14:31:32 +0200 (CEST) Original-Received: from nicferrier-XPS13-9333 (localhost [127.0.0.1]) by nicferrier-dell-xps (Postfix) with ESMTPS id C0255600C0; Wed, 1 Apr 2015 13:04:23 +0100 (IST) In-Reply-To: <87d23ob247.fsf@newcastle.ac.uk> (Phillip Lord's message of "Wed, 01 Apr 2015 10:59:36 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 78.46.66.17 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:184706 Archived-At: phillip.lord@newcastle.ac.uk (Phillip Lord) writes: > The documentation is, I think, written from the perspective of someone > who knows what this sort of pattern-matching does already. The elisp > manual is, of course, a manual rather than a tutorial and the pcase > documentation is particularly not an easy read. > > The emacs-wiki has tons of examples, which is much easier to understand > I think! > > http://www.emacswiki.org/emacs/PatternMatching I think it's awful, personally. I don't recall any discussion about whether it would be useful either. Unlike for, say, the yield stuff which has to be debated forever. There are much better, more lisp idiomatic, libs for doing pattern matching which pcase should give way to imo. Shadchen for example. Pattern matching is an excellent tool for programmers. I think pcase is a poor implementation for EmacsLisp. Nic