I’m trying to generate the code
f(a...,b...) from inside a macro. The following doesn’t seem to work because it adds an extra tuple around
julia> quote f($((:($i...) for i=[:a,:b])...)) end quote f((a...,), (b...,)) end
Instead, I have to use an explicit
julia> quote f($((Expr(:(...),i) for i=[:a,:b])...)) end quote f(a..., b...) end
Could any macro-guru’s help me out with a way to write this without resorting to using
Expr (which I don’t like simply because I find it makes the code a bit harder to parse)? Thanks!