From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.devel Subject: Re: The poor state of documentation of pcase like things. Date: Thu, 24 Dec 2015 09:51:08 -0800 Message-ID: References: <20151216202605.GA3752@acm.fritz.box> <87mvt859cw.fsf@russet.org.uk> <87poy2tqrc.fsf@web.de> <87mvt6nsxr.fsf@russet.org.uk> <87oadmkuwd.fsf@web.de> <874mfenltp.fsf@russet.org.uk> <87oadltfcc.fsf@web.de> <8737uxgdh1.fsf@russet.org.uk> <87poxvivsz.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1450979922 9218 80.91.229.3 (24 Dec 2015 17:58:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Dec 2015 17:58:42 +0000 (UTC) Cc: emacs-devel@gnu.org, Phillip Lord To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 24 18:58:35 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 1aCA9q-0004qH-An for ged-emacs-devel@m.gmane.org; Thu, 24 Dec 2015 18:58:34 +0100 Original-Received: from localhost ([::1]:32925 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCA9p-0000nZ-SV for ged-emacs-devel@m.gmane.org; Thu, 24 Dec 2015 12:58:33 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44658) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCA9d-0000nP-6X for emacs-devel@gnu.org; Thu, 24 Dec 2015 12:58:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aCA9Y-00016G-7k for emacs-devel@gnu.org; Thu, 24 Dec 2015 12:58:21 -0500 Original-Received: from mail-pf0-x234.google.com ([2607:f8b0:400e:c00::234]:32794) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCA9Y-00016C-2I for emacs-devel@gnu.org; Thu, 24 Dec 2015 12:58:16 -0500 Original-Received: by mail-pf0-x234.google.com with SMTP id q63so35130798pfb.0 for ; Thu, 24 Dec 2015 09:58:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:date:message-id:references :user-agent:mail-followup-to:mime-version:content-type; bh=QR6TdI1Q/2nxCbrUaQY0OynM5uW+eJE26ku18qRAHHE=; b=Zb5sGHkCs921/XaAMTEhXq+GboQts76Nf6bMTgTLoiVvZxN/gr8wtPhbJiPS2XW4qp JTTusrJ7ygFihpXNgfsYMJmo4gRQ0aHpMWNfFtjpSyZLEL06xkiS0BDyVYR0vWKKQWpV WCryGbca7GBiX6yGJsvnpN5JuF5D4a7RdYa8hTC9rnfKy28QtcxhMfeed4HossbccKwJ ubrLRgsWkpEalg9jHGZPwBN74uv4sSK88VatmpHjv31bDIcVkHE3pWBfuBRgu3Eqpp9y eTlozcDJIBxsCtQ61wLEuNf/Ich+BNaKjOGj0NPh9TvKAdqAHLTqdJa2FbO4Or2LuWEL F5BQ== X-Received: by 10.98.87.216 with SMTP id i85mr53245609pfj.90.1450979895243; Thu, 24 Dec 2015 09:58:15 -0800 (PST) Original-Received: from Vulcan.local (76-234-68-79.lightspeed.frokca.sbcglobal.net. [76.234.68.79]) by smtp.gmail.com with ESMTPSA id yn8sm60283085pac.32.2015.12.24.09.58.13 (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 24 Dec 2015 09:58:13 -0800 (PST) X-Google-Original-From: "John Wiegley" Original-Received: by Vulcan.local (Postfix, from userid 501) id A3D0111AF39A3; Thu, 24 Dec 2015 09:58:12 -0800 (PST) In-Reply-To: <87poxvivsz.fsf@web.de> (Michael Heerdegen's message of "Thu, 24 Dec 2015 18:46:36 +0100") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (darwin) Mail-Followup-To: Michael Heerdegen , phillip.lord@russet.org.uk (Phillip Lord), emacs-devel@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c00::234 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:196781 Archived-At: >>>>> Michael Heerdegen writes: >> I thought we were not going to mention q-patterns any more! > I never said that. "qpattern" is a useful term when describing the ` > pattern. What I said was we should avoid the old term "upattern" for general > type pcase patterns. They are both terrible names. Even knowing exactly what they, they don't help me to think about pcase. For macros, `foo' gets evaluated, and a quoted foo doesn't. Back-quoting reverses the idea: `foo' does not get evaluted, and a comma'd foo is. For patterns, `foo' is computed to determine the pattern, and a quoted foo matches exactly. Back-quoting reverse the idea: `foo' matches exactly, and a comma'd foo is evaluated to determine its logical behavior. -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2