From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] Preserve keyword in 'syntax-rules' and 'define-syntax-rule' Date: Thu, 11 Oct 2012 09:26:49 +0200 Message-ID: <87pq4p5v0m.fsf@gnu.org> References: <87ipakn7vl.fsf@tines.lan> <87zk3ujkbm.fsf@tines.lan> <87pq4qoyao.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1349940424 24537 80.91.229.3 (11 Oct 2012 07:27:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Oct 2012 07:27:04 +0000 (UTC) Cc: guile-devel@gnu.org To: Alex Shinn Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Oct 11 09:27:11 2012 Return-path: Envelope-to: guile-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 1TMDAj-0002Pw-E9 for guile-devel@m.gmane.org; Thu, 11 Oct 2012 09:27:09 +0200 Original-Received: from localhost ([::1]:33030 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMDAc-0005eh-JI for guile-devel@m.gmane.org; Thu, 11 Oct 2012 03:27:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55766) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMDAZ-0005eR-CI for guile-devel@gnu.org; Thu, 11 Oct 2012 03:27:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TMDAT-0007Qr-6F for guile-devel@gnu.org; Thu, 11 Oct 2012 03:26:59 -0400 Original-Received: from xanadu.aquilenet.fr ([88.191.123.111]:51264) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMDAT-0007Qm-0H for guile-devel@gnu.org; Thu, 11 Oct 2012 03:26:53 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by xanadu.aquilenet.fr (Postfix) with ESMTP id D35919EAA; Thu, 11 Oct 2012 09:26:50 +0200 (CEST) Original-Received: from xanadu.aquilenet.fr ([127.0.0.1]) by localhost (xanadu.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id x2hdM46uKMME; Thu, 11 Oct 2012 09:26:50 +0200 (CEST) Original-Received: from pluto (LVelizy-156-45-40-43.w80-11.abo.wanadoo.fr [80.11.140.43]) by xanadu.aquilenet.fr (Postfix) with ESMTPSA id 686E69EA9; Thu, 11 Oct 2012 09:26:50 +0200 (CEST) X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 20 =?iso-8859-1?Q?Vend=E9miaire?= an 221 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu In-Reply-To: (Alex Shinn's message of "Thu, 11 Oct 2012 11:02:57 +0900") User-Agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 88.191.123.111 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:14965 Archived-At: Hi Alex, Alex Shinn skribis: > This is not a bug. R5RS states: > > The keyword at the beginning of the pattern in a is > not involved in the matching and is not considered a pattern > variable or literal identifier. > > R6RS forbids _ as a literal. R7RS retains the R5RS ignoring > of the initial keyword, adds _ as a wildcard, but allows it to be > used as a literal. So this code would only break in R6RS. Interesting, thanks for the clarification. So I guess the safest decision for Guile is to keep the current behavior. Thanks, Ludo=E2=80=99.