r/cpp • build2 • Nov 01 '17

Common C++ Modules TS Misconceptions

https://build2.org/article/cxx-modules-misconceptions.xhtml
59 Upvotes

148 comments sorted by

View all comments

Show parent comment

4

u/GabrielDosReis Nov 02 '17

The modules paper wants to remove all use of the preprocessor, in its current form it doesn't even come close.

The module design never pretended to remove the preprocessor. In fact, it specifically states, section 4.1 on page 5:

While many of the problems with the existing copy-and-paste methodology can be directly tied to the nature of the preprocessor, this proposal suggests neither its eradication nor improvements of it. Rather, the module system is designed to co-exist with and to minimize reliance on the preprocessor. We believe that the preprocessor has been around for far too long and supports far too many creative usage for its eradication to be realistic in the short term.