Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I have this issue on occasion with older mixed C/C++ codebases that use `.c` for C files and `.C` for C++ files. Maddening.


I never understood the popularity of the '.C' extension for C++ files. I have my own preference (.cpp), but it's essentially arbitrary compared to most other common alternatives (.cxx, .c++). The '.C' extension is the only one that just seems worse (this case sensitivity issue, and just general confusion given how similar '.c' looks to '.C').

But even more than that, I just don't get how C++ turns into 'C' at all. It seems actively misleading.


C++

is Incremented C

which is Big C

which is Capital C


But C is already capital C! Even .d would have been a better extension.


He is clearly taking about the capital version of capital C.


You can always reformat as APFS (Case Sensitive)


I remember seeing quite a few things in the old days that would have both 'makefile' and 'Makefile'.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: