r/cpp • • Feb 26 '26

The Joy of C++26 Contracts - Myths, Misconceptions & Defensive Programming - Herb Sutter

https://www.youtube.com/watch?v=oitYvDe4nps&t=1s
72 Upvotes

84 comments sorted by

View all comments

Show parent comment

6

u/germandiago Feb 28 '26

What was reflection? Template for? std::execution? range-v3 anyone? Didn't those features have implementations?

Sometimes it has been doing suboptimally but many things did have reference implementations before going into the standard.

1

u/pjmlp Feb 28 '26

Some features have implementations, and even those you will have a hard time pointing out the implemenation that covers 100% the wording of the standard.

Other languages, e.g. JavaScript, require two existing implementations of any feature before it lands on the standard.