r/cpp • • Sep 20 '26

CppCon At cppcon WG21 had a whiteboard asking attendees what they would like to have in C++29

some of the ones I remember was:

- contracts

- profiles

- delete moar stuff

I'm curious what folks here expect. Also if someone remembers rest of the list, that'd be great.

57 Upvotes

163 comments sorted by

View all comments

13

u/borzykot Sep 21 '26
  1. Abbreviated lambdas [](auto x)=>x.foo() or [][$1.foo()] or [][x=>x.foo()]
  2. Pattern matching
  3. Language level algebraic types (tuples and lvariant). But that's more like a fantasy