From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: The poor state of documentation of pcase like things. Date: Thu, 24 Dec 2015 00:49:40 -0500 Message-ID: References: <20151216202605.GA3752@acm.fritz.box> Reply-To: rms@gnu.org NNTP-Posting-Host: plane.gmane.org Content-Type: text/plain; charset=Utf-8 X-Trace: ger.gmane.org 1450936216 30872 80.91.229.3 (24 Dec 2015 05:50:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Dec 2015 05:50:16 +0000 (UTC) Cc: acm@muc.de, emacs-devel@gnu.org, kaushal.modi@gmail.com To: John Wiegley Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 24 06:49:57 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 1aBymg-0005IC-NQ for ged-emacs-devel@m.gmane.org; Thu, 24 Dec 2015 06:49:54 +0100 Original-Received: from localhost ([::1]:59006 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBymf-00068y-Vy for ged-emacs-devel@m.gmane.org; Thu, 24 Dec 2015 00:49:53 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBymd-00068t-Aa for emacs-devel@gnu.org; Thu, 24 Dec 2015 00:49:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aBymc-0007iF-FQ for emacs-devel@gnu.org; Thu, 24 Dec 2015 00:49:51 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44788) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBymX-0007fk-67; Thu, 24 Dec 2015 00:49:45 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1aBymS-0007vq-Nh; Thu, 24 Dec 2015 00:49:41 -0500 In-reply-to: (message from John Wiegley on Thu, 17 Dec 2015 16:42:13 -0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:196754 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] Is _ as wildcard a UPattern? In other words, should this > (pcase value > (`(_ 1 2) > (message "Matched a list of anything followed by (2 3)"))) really be this? > (pcase value > (`(,_ 1 2) > (message "Matched a list of anything followed by (2 3)"))) If so, now the description makes sense. But I think it might be useful to define _ as a QPattern to be equivalent to ,_. It is true that this would make it an exception among QPatterns, but one exception might be worth while. -- Dr Richard Stallman President, Free Software Foundation (gnu.org, fsf.org) Internet Hall-of-Famer (internethalloffame.org) Skype: No way! See stallman.org/skype.html.