4 ms·
I really like swift's simple way of collapsing try catch blocks down to a simple value|nil result. let data = try? aFuncThatThrows() Sometimes I just don'
by seanalltogether 4y ago
I really like swift's simple way of collapsing try catch blocks down to a simple value|nil result.
let data = try? aFuncThatThrows()
Sometimes I just don't care about the reason for the exception and just want to know if it succeeded or not
- armchairhacker 4y agoRust does this too with `Result::ok`