Meta.parse supports interpolation?

It’s just doing string interpolation before Meta.parse is called at all, and doesn’t care what the string contains:

julia> x = 2;

julia> ":(:( :) v = $x )])" # nonsense
":(:( :) v = 2 )])"

julia> Meta.parse(ans)
ERROR: Base.Meta.ParseError("missing comma or ) in argument list")
3 Likes