To create an expression involving the new “keyword” public
of Julia 1.11, one can say something like
julia> Expr(:public, :x)
:(public x)
The following does not work, however:
julia> :(public x)
ERROR: ParseError:
# Error @ REPL[2]:1:10
:(public x)
# ╙ ── Expected `)`
Maybe this is because public
is actually not a reserved keyword. Anyway, is this behaviour intended? Maybe there would be a way to allow the second form even if public
is not a reserved keyword. After all, it works outside of quoted expressions.