Re: [racket-users] How can I include a literal ellipsis in a macro?

2019-04-10 Thread David Storrs
Good point. Thank you. On Wed, Apr 10, 2019 at 8:06 AM Jérôme Martin wrote: > On Wednesday, April 10, 2019 at 12:46:49 PM UTC+2, David Storrs wrote: >> >> Great, thanks! >> >> On Wed, Apr 10, 2019 at 6:35 AM Sorawee Porncharoenwase < >> sorawe...@gmail.com> wrote: >> >>> Use either (... ...) or

Re: [racket-users] How can I include a literal ellipsis in a macro?

2019-04-10 Thread Jérôme Martin
On Wednesday, April 10, 2019 at 12:46:49 PM UTC+2, David Storrs wrote: > > Great, thanks! > > On Wed, Apr 10, 2019 at 6:35 AM Sorawee Porncharoenwase < > sorawe...@gmail.com > wrote: > >> Use either (... ...) or (quote-syntax ...). >> > Also if you are using syntax-parse, what I usually do is:

Re: [racket-users] How can I include a literal ellipsis in a macro?

2019-04-10 Thread David Storrs
Great, thanks! On Wed, Apr 10, 2019 at 6:35 AM Sorawee Porncharoenwase < sorawee.pw...@gmail.com> wrote: > Use either (... ...) or (quote-syntax ...). > > See https://stackoverflow.com/a/38276476/718349 > > On Wed, Apr 10, 2019 at 3:23 AM David Storrs > wrote: > >> Assuming I would like a macro

Re: [racket-users] How can I include a literal ellipsis in a macro?

2019-04-10 Thread Sorawee Porncharoenwase
Use either (... ...) or (quote-syntax ...). See https://stackoverflow.com/a/38276476/718349 On Wed, Apr 10, 2019 at 3:23 AM David Storrs wrote: > Assuming I would like a macro to generate a match statement, like the > following: > > (match foo > [(list (vector x y z) ...) ]) > > '...' al

[racket-users] How can I include a literal ellipsis in a macro?

2019-04-10 Thread David Storrs
Assuming I would like a macro to generate a match statement, like the following: (match foo [(list (vector x y z) ...) ]) '...' already has a meaning for a syntax transformer and I'm not sure how to tell it "no, this one should be inserted literally". I tried putting it into a binding so