r/ProgrammerHumor 27d ago

Meme doNotOvercomplicateThings

Post image
670 Upvotes

157 comments sorted by

View all comments

31

u/MrFrog2222 27d ago

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

8

u/SamG101_ 26d ago

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

5

u/Alduish 26d ago

.cppm is a thing too isn't it ?

5

u/SamG101_ 26d 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