Tag: Optionals

2 Minute Tips: The Dark Secret of Optionals

As fentanyl is to heroin; the ? syntax gives a stronger kick at a much lower dose than Optional<String>. The Swift Compiler metabolises it into the same end product: Getting high on type-safe nullability. Let’s end with a use case for this forbidden knowledge. Imagin...