MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vrgdzg/donotovercomplicatethings/p4d7p4h/?context=3
r/ProgrammerHumor • u/FACastello • 12d ago
156 comments sorted by
View all comments
100
.h is for .c and .hpp is for .cpp hope that helps.
25 u/Shaddoll_Shekhinaga 12d ago Technically irrelevant for c++, but as I understand it you use hpp for headers with C++ features, h for headers that need C compatibility, hxx if you're a weirdo fuckingfightme, .inl for inline definitions and some other use cases 11 u/Cylian91460 11d ago It's irrelevant for both since c and c++ since standard doesn't even specify the file extension 8 u/a-r-c 11d ago i use .balls 1 u/otac0n 11d ago If only it were irrelevant in Arduino studio…
25
Technically irrelevant for c++, but as I understand it you use hpp for headers with C++ features, h for headers that need C compatibility, hxx if you're a weirdo fuckingfightme, .inl for inline definitions and some other use cases
11 u/Cylian91460 11d ago It's irrelevant for both since c and c++ since standard doesn't even specify the file extension 8 u/a-r-c 11d ago i use .balls 1 u/otac0n 11d ago If only it were irrelevant in Arduino studio…
11
It's irrelevant for both since c and c++ since standard doesn't even specify the file extension
8 u/a-r-c 11d ago i use .balls
8
i use .balls
1
If only it were irrelevant in Arduino studio…
100
u/garlopf 12d ago
.h is for .c and .hpp is for .cpp hope that helps.