Bummer! This is just a preview. You need to be signed in with a Basic account to view the entire video.
The Absence of Data6:20 with Pasan Premaratne
In many languages, when you encounter the absence of data, you have to deal with it by writing another path for your code. There is no indication that the data doesn’t exist so at many points in your program you have to write defensive code. This isn’t the situation in Swift, and in this video we take a look at optional types that help solve this problem.