Hacker News new | ask | show | jobs
by Cmerlyn 2839 days ago
No they aren't. A macro solution is always less readable and less performant than a proper compiler feature. But you can't get a compiler feature for everything. People have different needs for different tasks and doing all of it in the compiler is just not going to work. Macros allow programmers to implement features that would otherwise take years (if not decades) of standardization to be accepted in a language.