.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.
-
I noticed that we have
.h2
for CPP2 header extension. If so.c2
is 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
.h2
extension also, which we aren't trying to avoid.Some naming conventions use
.hpp
against.h
for C++ headers against C ones, but mostly.h
is used. So nobody insists on avoiding.h2
and using.hpp2
for CPP2 I guess.But if
.h2
is acceptable then the simplest would be.c2
and not.cpp2
. Note that it would be easier to distinguish from.cpp
in file listings and would fit within the same (less) number of columns too.Beta Was this translation helpful? Give feedback.
All reactions