[r6rs-discuss] Comment 111: Syntax-rules
AndrevanTonder
andre at het.brown.edu
Fri Dec 22 05:27:55 EST 2006
> This will be addressed in the
> next report draft by having the base library export both and only
> syntax-rules and identifier-syntax, so that if no other bindings are
> imported "for expand", the only valid transformer-creating expressions
> will be syntax-rules and identifier-syntax.
In other words, to use (r6rs base) and syntax-rules, one would have to
write:
(import (r6rs base)
(for (only (r6rs base) syntax-rules) expand))
Would it not be more elegant for (r6rs base) to export syntax-rules, and only
syntax-rules, at level 1 directly, so one could write simply
(import (r6rs base))
to make syntax-rules available at the correct level.
> ... the only valid transformer-creating expressions
> will be syntax-rules and identifier-syntax.
I don't think this constraint can be satisfied in an implementation that infers
phase shifts automatically.
Cheers
Andre
More information about the r6rs-discuss
mailing list