2 ms·
That's usually the advice given to aspiring macro writers. You write ordinary code, but when you start feeling there's a higher-level concept there for which yo
by TeMPOraL 6y ago
That's usually the advice given to aspiring macro writers. You write ordinary code, but when you start feeling there's a higher-level concept there for which you repeatedly write the same boilerplate, that's when you consider using macro to introduce said concept as a first-class, explicit thing.
It's not that different than abstracting through functions or objects, but it allows you to abstract away the repetitive code structure as well.