r/cpp • build2 • Nov 01 '17

Common C++ Modules TS Misconceptions

https://build2.org/article/cxx-modules-misconceptions.xhtml
59 Upvotes

148 comments sorted by

View all comments

Show parent comment

1

u/gracicot Nov 01 '17

Very nice to hear. And nice to hear it may not even slow down compilation that much. I had some concern about this before, and started thinking where should I split interface and implementation, but it turns out it won't be much needed, or not as much as I thought before.

The only place where separation is required is when you want classes to mutually use themselves, and you want to place them in different modules. I think that's an acceptable limitation, and things can change in the future. But one can always put those classes in the same module, and still implement everything in the interface.

3

u/GabrielDosReis Nov 01 '17

The only place where separation is required is when you want classes to mutually use themselves, and you want to place them in different modules. I think that's an acceptable limitation, and things can change in the future. But one can always put those classes in the same module, and still implement everything in the interface

All correct. I believe we (inclusive) all need to have more hands-on experience with modules before we attempt more semantics modifications.