From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Przemys=c5=82aw_Wojnowski?= Newsgroups: gmane.emacs.devel Subject: Re: Question on pcase Date: Sat, 24 Oct 2015 13:37:40 +0200 Message-ID: <562B6D84.5010700@cumego.com> References: <871tcngdv2.fsf@gmail.com> <87k2qe1u09.fsf@web.de> <83r3kmrtat.fsf@gnu.org> <87r3kl22zk.fsf@web.de> <837fmdzpf2.fsf@gnu.org> <87oafp659p.fsf@web.de> <831tclzly9.fsf@gnu.org> <87fv115t20.fsf@web.de> <562A9730.8040003@cumego.com> <87bnbp5nfs.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1445686693 19349 80.91.229.3 (24 Oct 2015 11:38:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 24 Oct 2015 11:38:13 +0000 (UTC) Cc: Emacs Development To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 24 13:38:01 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 1Zpx96-0007Ab-I8 for ged-emacs-devel@m.gmane.org; Sat, 24 Oct 2015 13:38:00 +0200 Original-Received: from localhost ([::1]:43874 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpx95-0006dX-R5 for ged-emacs-devel@m.gmane.org; Sat, 24 Oct 2015 07:37:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42505) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpx8t-0006dP-1I for emacs-devel@gnu.org; Sat, 24 Oct 2015 07:37:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zpx8p-0000qC-Qy for emacs-devel@gnu.org; Sat, 24 Oct 2015 07:37:46 -0400 Original-Received: from smtp23.iq.pl ([86.111.242.228]:44886) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpx8p-0000px-HA for emacs-devel@gnu.org; Sat, 24 Oct 2015 07:37:43 -0400 Original-Received: (qmail 14686 invoked from network); 24 Oct 2015 11:37:41 -0000 Original-Received: from unknown (HELO [192.168.1.106]) (esperanto@cumego.com@[159.205.196.239]) (envelope-sender ) by smtp22.iq.pl with AES128-SHA encrypted SMTP for ; 24 Oct 2015 11:37:41 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: <87bnbp5nfs.fsf@web.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 86.111.242.228 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:192534 Archived-At: W dniu 23.10.2015 o 22:39, Michael Heerdegen pisze: > Przemysław Wojnowski writes: >> I don't understand one thing. If "pcase" in an implementation of >> Pattern Matching, then why it is called "pcase" not "pmatch"? > > `pcase' itself is just one macro that pcase.el defines that makes use of > pattern matching. I guess the name means Pattern (matching) Case, > because it's syntax and semantic is similar to `cl-case', just with > pattern matching. IMHO it makes sense to rename it to match its concept and hence making it easier to learn (discover) for people that know the concept from other languages: - Clojure: core.match (https://github.com/clojure/core.match) - Scala: match keyword (http://docs.scala-lang.org/tutorials/tour/pattern-matching.html) - Racket: match form (http://docs.racket-lang.org/guide/match.html) - F#: match expression (https://msdn.microsoft.com/en-us/library/dd547125.aspx)