Elaborating on his recent article 'How I Handle Optionals In Swift', Joseph will offer well contested advice on the best ways to use Optionals in Swift. Covering five additional techniques that reduce the need to use 'if let', he'll help you avoid the infamous Swift "Pyramid of Doom".
"I take an extreme line on optionals and do not make use of implicitly unwrapped optionals and very rarely uses force unwrapping. The talk will cover a range of approaches to optionals and where appropriate their disadvantages. I will also briefly cover a custom operator that I use to get the best of both worlds."
Additional topics include:
- When 'if let' should be used
- The disadvantage of not using '!'
- The custom '!!' Asserting Nil-Coalescing Operator
YOU MAY ALSO LIKE:
Beyond 'if let'
Joseph studied Computer Science at Cambridge University and since then worked at the BBC and Sony for about five years each before starting his own company Human Friendly Ltd. about 3 years ago and starting iOS development (and some Ruby and Rails too). He is currently looking for new exciting opportunities and available for employment, contracting or coaching in iOS (Objective-C or Swift). He has been playing with Swift and writing about it since it was announced.