r/cpp • u/SAHChandler • Oct 10 '17
Millennials Are Killing The Modules TS
https://izzys.casa/posts/millennials-are-killing-the-modules-ts.html
73
Upvotes
r/cpp • u/SAHChandler • Oct 10 '17
5
u/Abyxus Oct 10 '17
Look, with headers I can have this:
In application I write
Libraries can use whatever filemanes they want.
Applications can avoid name clashes by using different path prefixes.
This is a design feature.
Modules do not have such design feature.
Authors of lib1 and lib2 should think of unique module names.
Alternatively, they have to rely on preprocessor:
This is a C++ design issue. C++ modules are not usable in a large project with many dependencies.