safety

Safety refers to a quality of code that describes how easily it can be provoked into producing unexpected or illegal behaviour.

A problem I come across rather frequently has to do with the fact that input in C++ requires a pre-existing variable of the correct type, which either has to be uninitialized or initialized to some “safe” value. There’s a third option, though, and it’s the topic of my first Tippet. Continue Reading