News for hackers. Stuff that matters.
Re:Trying out C++20's modules with Clang and Make by dagmx on Sunday October 15, 2023 @01:10PM (#37891502)
The module system doesn’t have side effects on inclusion, whereas headers do.

So again, maybe if you have a smaller, cleaner or dependency free codebase, then it’s not an issue.

But in any codebase of major scale or legacy, headers can introduce several issues that aren’t possible with the module interface.

Re:Trying out C++20's modules with Clang and Make by mgaunard on Sunday October 15, 2023 @01:42PM (#37891743)
The side-effects are merely the rules of C++, that you already know by virtue of writing C++.
Re:Trying out C++20's modules with Clang and Make by dagmx on Sunday October 15, 2023 @01:50PM (#37891802)
I feel like you’re talking past any of the caveats I’ve mentioned twice. I have no interest in belabouring the point with someone who’s clearly ignoring what’s being written. Have a good day.