I recommend splitting this macro in two so you don't need to escape out of the 
template language:

(define-syntax (macro stx)
  (syntax-parse stx
    [(_ (var1:id ...) (~and vars (var2:id ...))
     #'(begin (macro/var2 (#freeze var1) vars) ...)]))

(define-syntax (macro/var2 stx
  (syntax-parse stx
    [(_ var1/freeze (var2:id ...))
     (begin (do-something var1/freeze var2) ...)]))

This also lets you get more information out of the macro stepper when 
debugging, since you'll see two separate expansion steps.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to