Re: [racket] quote-syntax in macro-generator

2012-06-01 Thread Jon Rafkind
Another thing about this, if the definition produced by the macro is instead generated by the `make-transformer' macro then it will have the wrong number of marks on it when everything is finally expanded. `syntax-local-introduce' fixes this by essentially removing that extra mark. #lang racket

[racket] quote-syntax in macro-generator

2012-06-01 Thread Jon Rafkind
Today's macro PSA is about macro-generating-macro forms. If you use a macro to generate a transformer then you must be careful about nesting `syntax' forms otherwise you will interpolate templates too many times. Specifically #'#'x will interpolate x twice. Given the following bindings: chick