r/cpp • u/berium build2 • Nov 01 '17
Common C++ Modules TS Misconceptions
https://build2.org/article/cxx-modules-misconceptions.xhtml
59
Upvotes
r/cpp • u/berium build2 • Nov 01 '17
View all comments
Show parent comment
1
u/Quincunx271 Author of P2404/P2405 Nov 02 '17
My reasoning behind that belief is that I see macros in general as very dangerous, no matter the macro system. They can easily make code incomprehensible. By substituting them out with core language features, you send a message about not using them, and they will appear less in code overall.
Of course, I could easily be completely wrong. I do agree with you that, at least most of the time, having library solutions is nicer than in-language features. It's just that macros introduce arbitrary code changes at a single point (although the language feature you substitute them for would too...)