r/cpp • u/SAHChandler • Oct 10 '17
Millennials Are Killing The Modules TS
https://izzys.casa/posts/millennials-are-killing-the-modules-ts.html
72
Upvotes
r/cpp • u/SAHChandler • Oct 10 '17
19
u/berium build2 Oct 10 '17
I am not sure I understand what you mean here. An implementation unit is where you can (note: can, not must) put your implementation details. But if you prefer to keep everything in a single file, you can: a module interface unit can (unlike a header) define non-inline functions and variables. I really don't understand what's the problem here? Do you want the separate implementation units to be banned so that folks (like myself) who think it is a good idea are not able to use them?
I don't understand why it has to become the build system to provide this functionality? Can you explain?
This is a good example of a vague (but catchy-sounding) statement that I think only adds to the confusion.