3 ms·
Hmm no I'm pretty sure in a template it's, ok I'm going to use different variable names for clarity: 3 + c => d the left hand side (3 + c) is b, and the right
by samatman 6y ago
Hmm no I'm pretty sure in a template it's, ok I'm going to use different variable names for clarity:
3 + c => d
the left hand side (3 + c) is b, and the right hand side is (d) is a, and this will apply no matter what you put on those sides, so it's rewritten in its entirety before the actual compiler sees the code.
Unless you're talking about a scope violation/dirty macro situation? And yeah I don't know Nim's story around hygiene either, but: it's usually only a problem with Lisp macros, exactly because of the homoiconicity. I'd wager Nim templates have their own scope that won't shadow the rewrite.