Re: [racket-users] Re: syntax expands to define syntax, problems with ...

2017-03-15 Thread Dan Liebgold
On Wednesday, March 15, 2017 at 9:36:19 AM UTC-7, Sam Tobin-Hochstadt wrote: > You need to escape the ... with another ..., like this: > That's what I forgot. Is there any other case where things are escaped in this manner? It's a little surprising... Thanks, Dan -- You received this

Re: [racket-users] Re: syntax expands to define syntax, problems with ...

2017-03-15 Thread Stephen Chang
The inner ellipses need to be "escaped". I like using the dot notation in nested macros but I know others do not like that style. (define-syntax (test stx) (syntax-case stx () ((_ n e ...) #'(define-syntax (n stx) (syntax-case stx () ((_ e0 (... ...))