3 ms·
Swift? Or, depending on how you feel about sending a message to nil simply returning nil, Objective-C? Swift's variant is much more modern, though, as it has
by jsolson 7y ago
Swift?
Or, depending on how you feel about sending a message to nil simply returning nil, Objective-C?
Swift's variant is much more modern, though, as it has the ability to inline assert.
https://docs.swift.org/swift-book/LanguageGuide/OptionalChaining.html https://docs.swift.org/swift-book/LanguageGuide/OptionalChai...
- leshow 7y agoRust had it before Swift did, I remember when the ? proposal came down the pipe to replace the try! macro and Swift didn't have it yet