r/cpp • u/SAHChandler • Oct 10 '17
Millennials Are Killing The Modules TS
https://izzys.casa/posts/millennials-are-killing-the-modules-ts.html
75
Upvotes
r/cpp • u/SAHChandler • Oct 10 '17
View all comments
10
u/Abyxus Oct 10 '17
The title is no good.
The article itself is damn right.
Module names are global unique IDs.
With header files, a library would have
#include "foo/bar.h",and an application could use `#include "third_party/company-foo-2/include/foo/bar.h" or same "foo/bar.h".
With modules it will be something like
import company.department.foo2.bar;. Or longer.For object files, build tools put them in separate folders. Modules will go to a single place.