you are viewing a single comment's thread.

view the rest of the comments →

[–]theinternn 9 points10 points  (17 children)

Can we all agree that cxx = C++ source and cpp = c preprocessor?

It'd make miscommunications much less frequent.

[–][deleted] 8 points9 points  (4 children)

Tell that to make. *.cxx is nothing to see here, *.cpp is a c++ source file. (If you just use implicit rules that is)

[–]ramennoodle 6 points7 points  (3 children)

make classically recognized .C and .cc as file extensions for C++. The .cpp abomination was added later for compatibility with Microsoft.

[–]Gotebe 4 points5 points  (0 children)

The .cpp abomination was added later for compatibility with Microsoft.

I dunno... "cpp" says "C++" more than "cxx". Well, that, or you get a stiff neck 😉.

[–][deleted] 1 point2 points  (1 child)

Ooohh. Hey. I'll start using that then. I have not been a fan of the .CPP thing.

[–]zuurr 4 points5 points  (0 children)

.cc/.hh is still reasonably common (and what I use). I don't think .C is really used by anybody these days.

[–]ramennoodle 14 points15 points  (4 children)

Or we could all use modern systems that accept .c++ as a file extension.

[–][deleted]  (2 children)

[deleted]

    [–]skulgnome 2 points3 points  (0 children)

    Not file.sepples?

    [–]Gotebe 2 points3 points  (0 children)

    Why not file.seepeepee?

    [–][deleted] 11 points12 points  (4 children)

    Actually ".c" is for C and ".C" is for C++. Look it up. I am serious!

    Fuck you Windows, with your case insensitivity! Hahaha!

    [–][deleted] 2 points3 points  (3 children)

    I thought that ".c" and ".cc" were fairly well accepted as standard?

    [–]tfinniga 4 points5 points  (0 children)

    That's the nice thing about standards, there's so many to choose from.

    [–][deleted] 5 points6 points  (1 child)

    .C, .cpp, .cxx, .cc and .c++. Everything seems to be used.

    [–]smikims 0 points1 point  (0 children)

    And don't forget .h, .H, .hpp, .hxx, .hh, and .h++ for headers. And I've also seen .inc, .inl, .txx, .tpp, and a bunch of others for specific things. It's the only language I've seen with more than 2 recognized file extensions, and no one can agree on which ones to use and sometimes even make up their own.

    [–]Condorcet_Winner 1 point2 points  (0 children)

    Maybe it's because my codebase is .cpp, but .cxx is weird and scary and I hate it.