[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Patch to add (define-syntax (foo bar) ...) support
From: |
Chris K. Jester-Young |
Subject: |
Patch to add (define-syntax (foo bar) ...) support |
Date: |
Sun, 3 Jul 2011 16:19:42 -0400 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
Hi there,
When writing syntax-case macros, often one would write:
(define-syntax foo
(lambda (bar)
(syntax-case bar ...)))
This seems overly long-winded; it would be preferable to be able to
write, instead:
(define-syntax (foo bar)
(syntax-case bar ...))
Attached is a patch that implements that. Note that there is nothing
original in this patch---it's just a straight copy-and-paste of the
"define" version immediately above, except changing define-form to
define-syntax-form---so there should be nothing controversial from a
correctness and/or copyright point of view.
Let me know what you think.
Many thanks,
Chris.
psyntax.scm.diff
Description: Text Data
- Patch to add (define-syntax (foo bar) ...) support,
Chris K. Jester-Young <=