3 ms·
I understand this isn't the point of the article, but the leading remark is fairly unreasonable. The lack of a clean module system in C++ is fairly directly a
by Negitivefrags 15y ago
I understand this isn't the point of the article, but the leading remark is fairly unreasonable.
The lack of a clean module system in C++ is fairly directly a result of it's decent from C, a language designed earlier than Modula-2 and thus unable to learn from it. It would have been very difficult to add such a thing in the intervening time to the language given the required constraints of compatibility.
- pjmlp 15y agoNot really. For example, the way Objective-C uses #import, is a bit like poor man's solution, but it already makes a difference in compile times. There is no reason why a module system won't be possible to add in C++. That is why they are finally doing it. Even C could benefit from one. The thing is, that most likely no one would use it, as many C developers are not used to module systems.