you are viewing a single comment's thread
view the rest of the comments
[–] 31 points 2 years ago (7 children)

Right? I rather not have a computer automatically autocorrect.

  • source
  • parent
  • hideshow 7 child comments
  • [–] 3 points 2 years ago (5 children)

    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).

  • source
  • parent
  • hideshow 5 child comments
  • [–] 2 points 2 years ago (3 children)

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

  • source
  • parent
  • hideshow 3 child comments
  • [–] 8 points 2 years ago* (last edited 2 years ago) (2 children)

    .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.

  • source
  • parent
  • hideshow 2 child comments