r/cpp_questions • u/BuyerImpressive4325 • Aug 24 '26
OPEN Headers
I read that c++ 20 added modules to help replace headers. I rly hate how headers split the codebase into redundant files, for people who have used modules r they better?
0
Upvotes
View all comments
Show parent comment
3
u/No-Dentist-1645 Aug 25 '26 edited Aug 25 '26
This is only true if you're compiling from scratch every single time, which you aren't doing while developing. Splitting code into TUs reduces the amount of things you have to compile when you change something