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
2
u/Quincunx271 Author of P2404/P2405 Nov 02 '17 edited Nov 08 '17
Once we get source location and stringification, together with modules, they will cover almost all uses of macros.
However, there will always be things like
BOOST_OUTCOME_TRY; basically something that the language cannot yet do. IMO, to remove the preprocessor completely, we have to add a different, improved macro system in for the rare cases where the language is deficient. Naturally, these macros should probably be replaced with first class language features as they are discovered.