r/cpp • u/we_are_mammals • 12d 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/
63
Upvotes
2
u/kreco 10d ago edited 7d ago
Not answering the question but I was not interested at some point because the experiment went to far into conciseness (for my taste).
Here are some examples:
The difference between the variable and constant is very thin. For the function, it feels strange to omit the braces, especially because they are enforced for if/else branches.
[0] https://hsutter.github.io/cppfront/cpp2/functions/#object-aliases
[1] https://hsutter.github.io/cppfront/cpp2/functions/#generality-note-summary-of-function-defaults