`try?` instead of `Result`. 😔
Conversation
:( :( :( :( :( :(
1
2
2
unhappy with Swift's error handling or is there something that bothers you with 'try?' specifically?
1
Justin and I wish that errors were typed. try? yields an Optional but should yield a Result.
1
1
Even if the Swift team disagreed that typing were an issue, boxing up error-or-value seems better than Optional. 😕
1
4
Replying to
i imagine the two are connected: feels weird to box up the error because it has no type
The encouraged use case of try? is as part of if-let, which is very different from how Result is used.
1
Show replies



