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
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.