The Frontier logo The Frontier logo

If you like this video, join The Frontier now.

John Daub

Swift Assertions

John Daub | May 21, 2018

How to use Swift's assertion functions?

In this screencast, we’ll learn how to use Swift’s assertion function to code defensively. By the end of this video, you’ll be able to use the assertion functions to help you write stronger, more robust code.

Questions we'll answer in this video:

- How can I ensure my code’s assumptions are correct?
- How can I enforce my code’s API constraints?
- What should I do to ensure I cover all possible paths of execution in my code?

Supported Links:

Debugging and Reflection