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.
stevengj
10
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Struggling to understand this Symbol behaviour - Scope determines error presence? | 13 | 922 | June 28, 2018 | |
| Using Symbol within function (unexpected behaviour) | 2 | 941 | May 9, 2019 | |
| Help interpolating a symbol | 8 | 666 | June 18, 2018 | |
| Metaprogramming: how to use variables from enclosing scope? | 11 | 993 | November 24, 2016 | |
| Global var Meta.parse in loop no vars in Main | 5 | 423 | March 23, 2020 |