Would this work in your real use case?
julia> v = 1;
julia> Meta.quot(:(x=$v)) |> dump
Expr
head: Symbol quote
args: Array{Any}((1,))
1: Expr
head: Symbol =
args: Array{Any}((2,))
1: Symbol x
2: Int64 1
Would this work in your real use case?
julia> v = 1;
julia> Meta.quot(:(x=$v)) |> dump
Expr
head: Symbol quote
args: Array{Any}((1,))
1: Expr
head: Symbol =
args: Array{Any}((2,))
1: Symbol x
2: Int64 1