EPISODE · Oct 28, 2019 · 13 MIN
Optionals Are Evil..?
from Inside iOS Dev · host Alex Bush, Andrew Rohn
https://twitter.com/_ivancr/status/1180199237398626304?s=20 Need to prepare for an iOS Engineer Interview? https://iosinterviewguide.com Connect with us: https://twitter.com/insideiosdev Email us at [email protected]
Embed this episode
What this episode covers
When and where should optionals be used? What are the advantages and disadvantages of optionals? Before Swift, iOS developers wrote their apps using Objective-C. In Objective-C, programmers could send messages to nil without the program crashing and in some cases was considered a feature. However, sometimes objects were unexpectedly nil and the program would incorrectly execute. Today, Swift uses optionals to more explicitly handle the case when an object is nil.
Ready to play
Optionals Are Evil..?
No transcript for this episode yet
Similar Episodes
No similar episodes found.