Categories
|
Swift - Optionals
Summary
The topics here include: declaration of optionals, unwrapping (forced and implicit), optional binding, nil coalescing, and optional chaining.
Articles in this Series
|
This article talks about the purpose of Optionals in Swift and how to declare them in your code.
|
This is a test on basic concepts of Optionals in Swift.
|
This article discusses how Optionals are implemented in Swift.
|
Test on how Optionals are implemented internally in Swift.
|
This article talks about getting the value wrapped inside an optional by unwrapping it forcibly.
|
Test on Forced Unwrapping of the Optionals in Swift.
|
This article talks about unwrapping the optionals in Swift implicitly and the circumstances where you would use this functionality.
|
Test on how and when optionals are implicitly unwrapped in Swift.
|
This article discusses the safer ways of unwrapping an optional in Swift that includes Optional Binding.
|
Test on using Optional Binding in Swift.
|
This article talks about the Nil Coalescing Operator (??) in Swift.
|
Test on Nil Coalescing Operator for Optionals.
|
This article talks about optional chaining in swift where multiple optionals can be chained together and fail gracefully by returning nil when one of them is nil.
|
Test on optional chaining to safely return a nil or non-nil value from a series of optionals chained together.
|
Summary of three operators (?, !, ??) used in optionals in Swift.
|
Tags:
Test on the usage of various Optionals operators (?, !, ??) in Swift
|
|
Bookmark and Share This
|
|
|
|