Hi, I am trying to write a macro that takes in varargs and escape them, but 
I haven't been able to do so with `esc`

To illustrate, I want this (dummy) macro to println the variables passed in

```
macro myprintln(exs...)
    :(println($(esc(exs...))))
end
```

However, this results in
```
ERROR: `esc` has no method matching esc(::Expr, ::Expr)
```

I tried to put `...` outside esc to `:(println($(esc(exs)...)))`, but when 
I do `macroexpand`, I get

```
$(Expr(:error, MethodError(start,(:($(Expr(:escape, (:(a + 2),:(a + 
3))))),))))
```

I tried again, further promoting `...` to `:(println($(esc(exs))...))`

But now when I do `macroexpand(:(@myprint(a+1, a+2)))`, I get

```
println((:(a + 2),:(a + 3))...)
```

And it doesn't work either.

Any suggestions?

Reply via email to