by 0xbadcafebee · 4y ago · 0 comments
Because that goes against the most fundamental idea of programming languages that you can build larger abstractions by combining basic building blocks.
All other things aside, C++ seems to be the language "to big to fail" and so it just keeps getting more and more features added to keep it competitive.
It would be just about OK for the compiler to refuse to compile X and Y together.
If you "switched off" X, then in C++ (where code is in headers which are just concatenated with your code), this would effectively split the language, as you also couldn't use libraries which use X in their headers.