sorawee
2018-12-27 12:58:45

I am writing a macro that generates macros. What’s the proper way to generate ... without making Racket confused about ...’s phase? Right now I use (datum->syntax stx '...), but it seems really hacky.


soegaard2
2018-12-27 12:59:19

(with-syntax ([ooo (… …)]) (syntax something ooo ))


soegaard2
2018-12-27 12:59:47

The strange syntax (… …) is the way to quote … .


soegaard2
2018-12-27 13:00:01

It’s more readable to use ooo instead.


sorawee
2018-12-27 13:00:06

I see. Thank you :slightly_smiling_face:


soegaard2
2018-12-27 13:00:41

See this recent StackOverflow question: https://stackoverflow.com/q/53863620/23567


soegaard2
2018-12-27 13:01:04

Alex does a nice job explaining different solution.s


shawsumma
2018-12-27 18:06:21

@shawsumma has joined the channel