3 ms·
Part of the justification is the lack of optimism that file extensions could be mandated (I'm less pessimistic). But it's also an important hint to the preproc
by humanrebar 3y ago
Part of the justification is the lack of optimism that file extensions could be mandated (I'm less pessimistic).
But it's also an important hint to the preprocessor to make pre-build dependency scanning faster. You don't want to have to compile all possible source files and then throw a bunch of that work away once you find there are module dependencies in the source files. Just having a magic file extension is not enough to clarify that.
A C++ packaging standard could help there, but C++ started with modules, probably because they seemed simpler.
- bluGill 3y agoThere should not be a c++ standard for packages. Maybe an ISO standard, but it needs to work for all languages, otherwise we will all roll our own. If the package can't support all languages it doesn't support the complex world C++ is used in.
- humanrebar 3y agoThere is some work in that direction but no specific ISO proposals yet.
- bluGill 3y agoIt is a very hard problem. I'd be concerned if there was a proposal.