logoalt Hacker News

soegaard11/08/20240 repliesview on HN

> * "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.