A defn.macro
that creates bindings with generated names
#297
Answered
by
sorawee
kiranandcode
asked this question in
Q&A
-
I'm trying to write a macro that generates additional bindings --- here's a simple example:
However, I can't seem to get the generated names to show up: // hello_name: unbound identifier |
Beta Was this translation helpful? Give feedback.
Answered by
sorawee
Apr 27, 2023
Replies: 1 comment 2 replies
-
Can you show the full program that you ran? It makes sense that this errors, but I thought the error should be:
or something along that line. This program works for me:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry, I debugged by removing that
_name
and forgot to add it back.(Edited: use
Syntax.make
)Here's a version with
_name
: