julia> Meta.parse(":1") :($(QuoteNode(1))) julia> Meta.parse(":a") :(:a)
Quoting the name
a gives me what I expect: The symbol
:a. Quoting the number
1, however, resolves to
$(QuoteNode(1)), which is not what I expect. I expect
:1 to resolve to the symbol
:1, and not to a QuoteNode that gets immediately interpolated.
There surely is a reason for this behavior, but I cannot find anything in the Metaprogramming docs.