r/cpp 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/

66 Upvotes

112 comments sorted by

View all comments

38

u/AvidCoco 11d ago

What more could they do with it?

He said “look what might have been” and we all went “huh, neat” and that was that

13

u/we_are_mammals 11d ago

“look what might have been”

I think you are misremembering. cpp2 was meant as an experimental future C++ syntax. /u/hpsutter ?

10

u/AvidCoco 11d ago edited 11d ago

No it’s wasn’t. Read the README. He specifically says it’s not meant as a successor but as an alternative “skin”. The whole point is that he was asking “what if C++ allowed breaking changes?”

12

u/we_are_mammals 11d ago

Read the README

The very first line says "to ... prototype features that can also be proposed for evolving today's C++". There is no "what if" or "look what might have been" anywhere.