[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: structures at expansion time



On Jan 18, Matthew Flatt wrote:
> [...]
> A good argument could be made for signalling an error when a program
> attempts to produce 3-D syntax objects. But PLT Scheme doesn't
> signal an error because 3-D syntax can be handy on occassion. (For
> example, errortrace performs a 3-D transformation on syntax.)

I have some similar code in my webserver, it's very simple --

  ;; Warning: hack regexps in source code
  (defmacro (regexp* re)
    (if (string? re) (regexp re) `(regexp ,re)))

but I always wanted to ask about this -- is this something that I can
continue using safely or do I risk errors at some point?

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