You are viewing a single thread.
View all comments View context
31 points

Right? I rather not have a computer automatically autocorrect.

permalink
report
parent
reply
3 points

Also, I constantly name files in the same directory the same thing except for case. In my ~/tmp directory I have unrelated foo.c (C source) and foo.C (C++ source).

permalink
report
parent
reply
4 points

Chaotic evil

permalink
report
parent
reply
2 points

Why not .cpp for C++? I don’t use C++, but I thought that was the standard.

permalink
report
parent
reply
8 points
*

.C came first. I don’t usually use it though; I usually use .cc or .cxx, but if I’m making some tiny test source, I often use .C. I’m strongly opposed to the .cpp extension because calling C++ “CPP” leads to confusion with the preexisting (before C++) use of the initialism to refer to the C preprocessor. There’s a reason why CPPFLAGS refers to preprocessor flags and CXXFLAGS refers to C++ flags.

permalink
report
parent
reply
6 points

Yeah, and I think most shells will correct this case by pressing tab

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 3.7K

    Monthly active users

  • 1.1K

    Posts

  • 39K

    Comments