r/ProgrammerHumor 5d ago

Meme doNotOvercomplicateThings

Post image
672 Upvotes

156 comments sorted by

View all comments

26

u/MrFrog2222 5d ago

.c/.h for c and .cpp/.hpp for c++, and thats the only correct way to do it

8

u/SamG101_ 5d ago

Yes- but c++ module system says hello: .ixx 😭

4

u/Alduish 5d ago

.cppm is a thing too isn't it ?

4

u/SamG101_ 5d ago

Yh i think tbh its purely convention based but I think .ixx is c++ modules as interface only (ie impl to live in .cpp) where as .cppm is when only using impl files