Not able to capture variable (via symbol) from outer scope?

Yes, this seems to fall into category 3 of my list of common mis-applications of metaprogramming. See also my 2019 JuliaCon talk on why you mostly shouldn’t use metaprogramming.

2 Likes