4 ms·
Conditional includes play a big role as a configuration mechanism in C. Likely the creators of C++ could not afford to get rid of that.
by nine_k 3y ago
Conditional includes play a big role as a configuration mechanism in C. Likely the creators of C++ could not afford to get rid of that.
- trealira 3y agoYou don't have to get rid of #include and the preprocessor to add modules. The ISO C++ committee has added modules to the newer standard and they haven't gotten rid of headers and conditional inclusion. Modules would be nice just so that the build system doesn't have to rely on things like "gcc -MMD" generating header dependencies of object files for inclusion in Makefiles.