[r6rs-discuss] Comment 111: Syntax-rules

From: AndrevanTonder <andre>
Date: Fri Dec 22 05:32:59 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
Received on Fri Dec 22 2006 - 05:27:55 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:00 UTC