
Contracts
CppCast
00:00
The Importance of a Rule in Testing
A lot of great discussions on that yeah yeah I actually gave a presentation on that and one last week and John Lakeos himself gave another presentation then we had a very good discussion. It narrow functions with preconditions and stuff like back to operate the square bracket right it just returns a reference to an element and you know that's never going to throw an exception but you still don't put no except on the function. If you do that then you can't do things like throw an exception if the precondition is violated if you have like a check in thereThings like that so you disable useful kind of error handling strategies. There's other conceptual reasons why the rule makes sense which are not
Transcript
Play full episode