Skip to content
The next Call to Random() Must Be 4 episode artwork

Mar 5, 2019 1 hr

The next Call to Random() Must Be 4

from cpp.chat Hosted by Jon Kalb & Phil Nash

We've talked about contracts before, but this week Björn Fahller joins us to give us his thoughts, based on his recent talk at C++ on Sea. This is all pre-Kona - the recent Standards meeting that saw several tweaks to the wording for contracts in the draft standard for C++20. Björn gives us a refresher of what contracts actually are, and how many of us have been using them in some form for years - even decades. Then we discuss what's actually going into C++20, why that's worth having compared to assert() or hand-rolled or library solutions - but also what the shortcomings are - including a couple of weakenesses that have cause some to think that contracts may be 'dead on arrival'. Where does the truth lie? Björn makes his case and (somewhat boringly) Jon and Phil tend to agree. But what does it matter? The whole show is undefined behaviour, anyway.

Episode details come from the podcast's RSS feed.

Embed this episode

We've talked about contracts before, but this week Björn Fahller joins us to give us his thoughts, based on his recent talk at C++ on Sea. This is all pre-Kona - the recent Standards meeting that saw several tweaks to the wording for contracts in the draft standard for C++20. Björn gives us a refresher of what contracts actually are, and how many of us have been using them in some form for years - even decades. Then we discuss what's actually going into C++20, why that's worth having compared to assert() or hand-rolled or library solutions - but also what the shortcomings are - including a couple of weakenesses that have cause some to think that contracts may be "dead on arrival". Where does the truth lie? Björn makes his case and (somewhat boringly) Jon and Phil tend to agree. But what does it matter? The whole show is undefined behaviour, anyway. Links: C++ on Sea videos- Now fully uploaded Italian C++ Conference- Andre Alexandrescu keynoting - Saturday June 15, Milan ACCU Conference- 2018-10-05 to 2018-10-26 emBo++- 14th to the 17th of March C++ Now- May 5, 2019 - May 10 Catch2 2.6.1 released Why You Should Use std::for_each over Range-based For Loops- Jon's guest post on Jonathan Boccara's blog Episode #32 on Contracts- with John Lakos and Kévin Boissonneault

Ready to play

The next Call to Random() Must Be 4

0:00 1:00:32

No transcript yet.

Requests help us decide what to transcribe next.

Frequently asked questions

How long is this episode of cpp.chat?

This episode is 1 hour and 0 minutes long.

When was this cpp.chat episode published?

This episode was published on March 5, 2019.

Can I download this cpp.chat episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.