.C2 for CPP2 source extension? #1241
Replies: 2 comments
-
|
A quick search reveals that C2 Programming Language already exists and does in fact use the
AFAIK doing headers + translation unit is a dying tradition, modern languages try to implement modules which avoid most (all?) problems of having a preprocessor while being faster to compile. The aforementioned language implements modules, so it doesn't use headers and thus has no need for Most C++ projects I have been involved in or read use |
Beta Was this translation helpful? Give feedback.
-
|
Oh sorry for not checking first before I spoke. And yes, I hope we won't need Maybe we should try |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I noticed that we have
.h2for CPP2 header extension. If so.c2is the simplest source extension no? Why the verbose.cpp2?Are we trying to give space for a non-existent C2? Already C++ == C+1, and this is that + 1, so C2 is right I feel. 🙂
Anyhow if such a C2 language might exist in future (unlikely?), then it would require the
.h2extension also, which we aren't trying to avoid.Some naming conventions use
.hppagainst.hfor C++ headers against C ones, but mostly.his used. So nobody insists on avoiding.h2and using.hpp2for CPP2 I guess.But if
.h2is acceptable then the simplest would be.c2and not.cpp2. Note that it would be easier to distinguish from.cppin file listings and would fit within the same (less) number of columns too.Beta Was this translation helpful? Give feedback.
All reactions