Since the advent of Swift, our behavior towards nil values have greatly changed. Swift brings type safety, and also works hard to prevent sending messages to nil by introducing Optionals. Implicitly unwrapped optionals are pretty new and behave just like optionals. However, they can be dangerous to your code if used incorrectly. So here, let me help with that!
Viewing entries tagged