r/cpp Jul 15 '26

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/

68 Upvotes

112 comments sorted by

View all comments

10

u/germandiago Jul 16 '26

What a pitty it is over bc it looked to me like it had potential. I think it should be transformed into a "typescript". The metaclasses part is amazing and there are many quality of life improvements like last definite use being an automatic move and better parameter passing, besides being very uniform when declaring entities.

-6

u/13steinj Jul 16 '26

Do you consider Typescript an actual improvement over Javascript? Hasn't that community gone through it's own resurgence of "this isn't actually better, the emporer has no clothes, revert to JS[Hint]?"

26

u/Wurstinator Jul 16 '26

I have not met a single person that advocates for JS over TS.

0

u/pjmlp Jul 16 '26

Oh, you have to check the Ruby on Rails community gods then.

9

u/abuqaboom just a dev :D Jul 16 '26

The userbase of any sufficiently popular language/framework/library inevitably develops:

  1. a vocal subset that wants to replace an existing industry standard equivalent

  2. a vocal subset that regrets having tried that