4 ms·
It's not that anybody wants to obfuscate things. But with clever mechanisms, people start to notice that they did only when it's too late. C macros can be usef
by jstimpfle 5y ago
It's not that anybody wants to obfuscate things. But with clever mechanisms, people start to notice that they did only when it's too late.
C macros can be useful, I would enjoy programming in this language much less if they weren't there. And if I build a reasonable abstraction with them, it's as little as a grep or go-to declaration to find out the definition. There are no implicit complicated resolution mechanims, no complicated internal data structures that keep what should be application data isolated in the compiler (so it has to be duplicated in other parts of the code). With macros, I just search for the name, and will usually quickly find the definition with very little additional indirection.