3 ms·
> * "Macros work different in most languages. However they are used for mostly the same reasons: code deduplication and less repetition." That could be said for
by soegaard 2y ago
> * "Macros work different in most languages. However they are used for mostly the same reasons: code deduplication and less repetition." That could be said for any abstraction mechanism. E.g. functions. The defining features of macros is they run at compile-time.
In the context of the blog post, he wants to generate structure definitions.
This is not possible with functions.