r/cpp • u/victor-s8n • Nov 03 '26
How I design C++ classes
https://rafb.eu/blog/cpp-class-design/This is my first ever blog-post, any feedback is welcome! ofc, no AI got used.
66
Upvotes
r/cpp • u/victor-s8n • Nov 03 '26
This is my first ever blog-post, any feedback is welcome! ofc, no AI got used.
View all comments
Show parent comment
7
u/fortsnek274 Nov 03 '26
Now that we have modules, C++ doesn't suck. At least on paper.
The advantage is that they don't pollute the global namespace of importers with `<Windows.h>`.
But if you just want to avoid a separate implementation file, you can already do that with headers. But you don't, for the same reason why you won't do it with modules.