[plt-scheme] Defining syntax parameters that act like ordinary symbols outside of syntax-parameterize
Hi,
I'm using quite a few macros that use syntax parameters, so I'd like them to act like ordinary symbols (when not in syntax-parameterize) to not clutter up the namespace too much.
I wrote an attempt (see below) to alpha-rename the parameters to gensyms outside of syntax-parameterize.
Could someone tell me if this will work properly?
So far, I haven't found a way to break it.
(define-syntax-parameter foo
(let ((sym (gensym)))
(make-rename-transformer (datum->syntax #f sym))))
-Remco