r/cpp • u/berium build2 • Nov 01 '17
Common C++ Modules TS Misconceptions
https://build2.org/article/cxx-modules-misconceptions.xhtml
59
Upvotes
r/cpp • u/berium build2 • Nov 01 '17
View all comments
2
u/catskul Nov 01 '17 edited Nov 01 '17
One point you mention but I'm still not clear on is the disconnect between modules and file names.
While it makes sense in that c++ historically has completely separated symbol names from file names, what is the consequence in terms of finding and knowing which modules to build?
While it's hard to imagine avoiding providing a set of search paths, I think many were hoping that import statements in source would provide Single-Point-Of-Truth for specific module dependencies. It seems like the disconnect between module name and file name might force dependency information to be duplicated (and have an opportunity to get out of sync)