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: Mon, 21 Dec 2015 21:22:20 -0800 Message-ID: References: <20151216202605.GA3752@acm.fritz.box> <83d1u4xhja.fsf@gnu.org> <87k2oatqk6.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1450762189 24541 80.91.229.3 (22 Dec 2015 05:29:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Dec 2015 05:29:49 +0000 (UTC) Cc: kaushal.modi@gmail.com, John Wiegley , Eli Zaretskii , emacs-devel@gnu.org, acm@muc.de To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 22 06:29:42 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 1aBFW1-0001YD-Jv for ged-emacs-devel@m.gmane.org; Tue, 22 Dec 2015 06:29:41 +0100 Original-Received: from localhost ([::1]:48787 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBFW1-0007cY-4P for ged-emacs-devel@m.gmane.org; Tue, 22 Dec 2015 00:29:41 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50057) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBFUn-0005LW-GD for emacs-devel@gnu.org; Tue, 22 Dec 2015 00:28:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aBFUl-0000kY-Bl for emacs-devel@gnu.org; Tue, 22 Dec 2015 00:28:25 -0500 Original-Received: from mail-pf0-x235.google.com ([2607:f8b0:400e:c00::235]:33077) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBFUc-0000he-LQ; Tue, 22 Dec 2015 00:28:14 -0500 Original-Received: by mail-pf0-x235.google.com with SMTP id n128so83737656pfn.0; Mon, 21 Dec 2015 21:28:14 -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=4S770OUvolUJlSTpy2+XQeVK4biNxJ1XPen/lj6g6C4=; b=n5moynb+7HznYrGXRQMJDVk1hSNaQ/aYGRGN9aimQJnWVONsW+kBrScHpNlwiQSVWI iIeC96E4PbgoV+sHeDT+HY8JI2rJ72LFQKSGJx0DvxbzFlGGyqEv8Ty7f2Ww9s3ev7d4 448/TSoHIsn1EJnIoXruh16IbXKWuiyBg8f8MPvAWQ5kGQ2LjFox2elLt2BJ+5lcDCnp /Z0Itc+L1CCdU310WfhkfugCDonh03RxqO+8ERu/mCrC3krsHnBI1CU9F80x8GeTnZmy MkQvdhc9CDCTh38Q++6CxauvlZiXpjBvjPjKcZksNId9L8ldWTmpkxAvR+p318GAyLgQ /naw== X-Received: by 10.98.12.67 with SMTP id u64mr33069972pfi.31.1450762094172; Mon, 21 Dec 2015 21:28:14 -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 m75sm12565745pfi.0.2015.12.21.21.28.10 (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 21 Dec 2015 21:28:12 -0800 (PST) X-Google-Original-From: "John Wiegley" Original-Received: by Vulcan.local (Postfix, from userid 501) id D232111A46D48; Mon, 21 Dec 2015 21:28:09 -0800 (PST) In-Reply-To: <87k2oatqk6.fsf@web.de> (Michael Heerdegen's message of "Sat, 19 Dec 2015 16:18:33 +0100") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (darwin) Mail-Followup-To: Michael Heerdegen , Eli Zaretskii , John Wiegley , acm@muc.de, emacs-devel@gnu.org, kaushal.modi@gmail.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c00::235 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:196648 Archived-At: >>>>> Michael Heerdegen writes: >> > (pcase value >> > (`(1 2 ,(or `3 `4)) >> >> Do 3 and 4 really have to be quoted here? Why? > Of course not! The form after the `unquote' is a "normal" pcase pattern. > Numbers count as atoms matching themselves. This was an unfortunate attempt to follow the sequence of unveiling features. I'll avoid this unnecessary complexity. -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2