Tearing Down Swift’s Optional Pyramid of Doom

Colin Eberhardt: With Swift, pyramids become an issue when you have to unwrap multiple optional values before performing some logic […] In the above code, the println statement will only be executed if all three of the optional variable a, b, and c are non nil. The more optionals your code relies on, the deeper … Continue reading Tearing Down Swift’s Optional Pyramid of Doom