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

Speaking of which, why do .cc and .cpp exist to refer to C++ source files? Two compiler vendors that couldn't agree?


You forgot .C (yes, uppercase C means C++, lowercase c means C), .c++ (the best one IMO), and .cxx (when your filesystem doesn't accept crosses, you tip them over). See https://gcc.gnu.org/onlinedocs/gcc-12.2.0/gcc/Invoking-G_002... for the full list.


It's worse. Others include .cxx (fairly common) and .C (thankfully rare).




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

Search: