For example, I would like to write a macro @macro1 that transforms
transform(df, @macro :X :Y) to
transform(df, (:X, :Y)...)
Heres' my attempt
macro macro1(ex...)
println(ex)
:($ex...)
end
transform(df, @macro1 :X :Y)
This seems quite hard. However, if allow the macro to be on the outside like this
@macro transform(df, (:X :Y))
then it's easier. But I am not sure if the "inside" macro style can achieve this.