tag macros raise NameError #2161
Answered
by
off-by-one
off-by-one
asked this question in
Q&A
-
I'm just going through the tutorial, and the tag macro examples don't work for me. The example
Gives me
Running the same code from the REPL gives the same error. I tried other examples, and I get the NameError every time. Non-tag macros work as expected. I'm currently running hy 0.20.0. Is there something I'm missing in the tutorial? |
Beta Was this translation helpful? Give feedback.
Answered by
off-by-one
Sep 10, 2021
Replies: 1 comment
-
Resolved - 0.20.0 didn't have the (defmacro "# ..." ...) syntax yet. The older deftag works fine, and I didn't notice the docs were for 1.0. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
off-by-one
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Resolved - 0.20.0 didn't have the (defmacro "# ..." ...) syntax yet. The older deftag works fine, and I didn't notice the docs were for 1.0.