Thanks so much! Using
(with-syntax ([expanded-b (datum->syntax #'b (local-expand #'b 'expression
#f))])
worked out great!
On Thursday, July 9, 2020 at 9:44:08 PM UTC-4, William J. Bowman wrote:
>
> You might want `local-expand`. It can still give you something that is
> expanded
> further th
You might want `local-expand`. It can still give you something that is expanded
further than you want, unless you know exactly which identifier you want to stop
at, which you can specify in the stop list.
https://docs.racket-lang.org/reference/stxtrans.html#%28def._%28%28quote._~23~25kernel%29._
I'm trying to work through expanding a macro to pass the result into
another macro. I've attached and pasted the spec below that is my toy
example. I've tried using expand, but it gives me "(C (#%app (#%top . B)
(quote 1) (quote 2)))" instead of "(C (in 1 2))". I've also tried many
other things
3 matches
Mail list logo