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

Re: problems with with-syntax



Matthew Flatt writes:
 > Splitting the environment allows compilers, syntax checkers, etc. to
 > see how much of the code needs to be evaluated at compile-time. For
 > example, imagine trying to run "Check Syntax" on the original code
 > (cinluding the use of `foobar'); the checker wouldn't know that it
 > needs to execute the `id' definition, instead of simply checking it. In
 > contrast, the `require-for-syntax' in the second program tells the
 > checker exactly which code that needs to be executed.

Rats, I keep forgetting Scheme isn't a dynamic language...

Would it be reasonable to ask for a "define-for-syntax" form?  Or
maybe call it "define-syntax-helper"?  I know I should be using
modules, but so far my program is fairly simple, with just top-level
definitions.

--dougo@ccs.neu.edu