by leshow · 7y ago · 0 comments
I think Rust was the first to do it (if you don't count Haskell's more general do-notation). Can anyone confirm that?
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/OptionalChai...