Hacker News new | ask | show | jobs
by OneGuy123 2021 days ago
TLDR of the article: the new C++ features can replace some macro usages, but not all.

"With current C++(17), most of the preprocessor use can’t be replaced easily."

"And even then: I think that proper macros, which are part of the compiler and very powerful tools for AST generation, are a useful thing to have. Something like Herb Sutter’s metaclasses, for example. However, I definitely don’t want the primitive text replacement of #define."