3 ms·
I wouldn't say optionals are necessarily for error reporting. According to this slide[0], actually, we're going to be getting a proper error-handling model in S
by cmyr 11y ago
I wouldn't say optionals are necessarily for error reporting. According to this slide[0], actually, we're going to be getting a proper error-handling model in Swift 2— we'll hear more either today or tomorrow.
[0] http://www.apple.com/live/2015-june-event/eda6e3f7-0fda-4b46-b428-94b7ac62cdec/ http://www.apple.com/live/2015-june-event/eda6e3f7-0fda-4b46...
- ptomato 11y agoYou can get an overview in the prerelease version of the Swift book - https://itunes.apple.com/us/book/swift-programming-language/id1002622538?mt=11 https://itunes.apple.com/us/book/swift-programming-language/...