10 July 2024
GSI
Europe/Berlin timezone

Preconditions: good or bad, necessary or dangerous ... and why?

10 Jul 2024, 14:05
55m
C27 3.010 - C27 Ebene 3 (GSI)

C27 3.010 - C27 Ebene 3

GSI

Speaker

Dr Matthias Kretz (GSI Helmholtzzentrum für Schwerionenforschung GmbH(GSI))

Description

Preconditions are the conditions under which a function/operation can be called. If a precondition is violated all things are possible (UB). The effects of hitting UB can be fatal. So why are there people that insist on preconditions (narrow contract) over functions that handle all erroneous inputs (wide contract). And what can you do to guard against coding errors that violate preconditions? And what's all this talk about Contracts in C++?

Style: Discussion. No slides. Live hacking.

Presentation Materials

There are no materials yet.