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?
Debugging and Reflection