Hi Alex,
Alex Shinn alexsh...@gmail.com skribis:
This is not a bug. R5RS states:
The keyword at the beginning of the pattern in a syntax rule is
not involved in the matching and is not considered a pattern
variable or literal identifier.
R6RS forbids _ as a literal. R7RS
Unfortunately, preserving the macro keyword breaks one of Oleg
Kiselyov's macros, namely 'ppat' in system/base/pmatch.scm:
--8---cut here---start-8---
(define-syntax ppat
(syntax-rules (_ quote unquote)
((_ v _ kt kf) kt)
((_ v () kt kf) (if (null? v)
Hi,
Mark H Weaver m...@netris.org skribis:
Unfortunately, preserving the macro keyword breaks one of Oleg
Kiselyov's macros, namely 'ppat' in system/base/pmatch.scm:
[...]
Oleg's macro uses '_' in the keyword position of the pattern, even
though '_' is in the literals list. Therefore, it
l...@gnu.org (Ludovic Courtès) writes:
Mark H Weaver m...@netris.org skribis:
Unfortunately, preserving the macro keyword breaks one of Oleg
Kiselyov's macros, namely 'ppat' in system/base/pmatch.scm:
[...]
Oleg's macro uses '_' in the keyword position of the pattern, even
though '_' is
On Thu, Oct 11, 2012 at 5:41 AM, Ludovic Courtès l...@gnu.org wrote:
Hi,
Mark H Weaver m...@netris.org skribis:
Unfortunately, preserving the macro keyword breaks one of Oleg
Kiselyov's macros, namely 'ppat' in system/base/pmatch.scm:
[...]
Oleg's macro uses '_' in the keyword position
Hi Mark!
Makes sense to me, you can apply it.
Thanks,
Ludo’.
Hello all,
I'd like to be able to do things like this:
--8---cut here---start-8---
(define-syntax alt-environment
(syntax-rules ()
((alt-environment)
(the-environment alt-environment
--8---cut