I am trying to make a macro that needs to evaluate an arbitrary (not known at parse time) amount of iterations of some code, which will change each time. I am trying to figure out how you would separately splice into the different levels of quoting. Here is a rough example of this
macro somemacro(var1) return quote for var2 in foo($var1) @eval @othermacro $var2 $var1 end end end
I also saw this post, but it didn’t really have an answer.