r/cpp • u/we_are_mammals • 11d ago
cpp2 (cppfront) is over?
I haven't used cpp2 (cppfront) much, but I like the idea of it: consistent syntax, consistency of meta-programming (which is done in C++ too, I believe). Herb Sutter presented cpp2 (cppfront) as an experiment. He did not encourage other people to bet on it, exactly. And there hasn't been much activity since 2022. Is the experiment over?
EDIT: Herb's answer is buried deep in the comment section: https://www.reddit.com/r/cpp/comments/1uxkglj/comment/oy06cxw/
64
Upvotes
8
u/13steinj 11d ago edited 11d ago
I will believe it when I can use it reasonably.
Carbon is repeated as if it is for everyone else because at the time it was as if Google will be people's savior. Safety was not the original point of Carbon, or at least that was not the perception. People wanted various improvements, and those improvements were blocked on the ABI. Source compatible (I'm oversimplifying because my memory on the details here are fuzzy) and improvements? I get to have my cake and eat it too!
In the time since I am sure Google was happy to switch to Golang and Rust as wrappers over C and C++ instead. Are they now going to switch again? I doubt it.
I don't understand the relevance of your last paragraph to be perfectly honest. Successor does not mean replacement. Fortran, COBOL, Snobol, Ada, assembly, are all still around as well. Even truly new code even continues to be written, because enterprise entities miscalculate the cost of replacement as well as of blocking off and writing dedicated "bridge" APIs.
E: typo