[plt-scheme] Generating top-level definitions from inner syntax

From: Eli Barzilay (eli at barzilay.org)
Date: Wed Oct 8 18:07:11 EDT 2003

On Oct  9, Lauri Alanko wrote:
> Hm, all right, thanks. But that seems ugly: it requires the _syntax
> transformer_ to compile the regexp, when in actuality the regexp
> compilation should be done at the _next_ stage. This seems to break
> the principle that you shouldn't be able to put non-syntactic data
> in syntax expansions...

Why?  Scheme has some predefined sets of `self-evaluating' values,
which you can use as syntax (so it's ok to (eval (list '+ 1)) instead
of (eval (list '+ '1))), and the #rx thing adds (compiled) regexps as
an additional one.

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!


Posted on the users mailing list.