?? return for Result/Option/Either like ops
#9695
Unanswered
sator-imaging
asked this question in
Language Ideas
Replies: 2 comments 2 replies
-
Beta Was this translation helpful? Give feedback.
1 reply
-
Are you thinking of guard statements? https://docs.swift.org/swift-book/documentation/the-swift-programming-language/controlflow/#Early-Exit |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
It's nice to have
?? returnallowed like the following to easily eliminate try-catch statements, isn't?(I heard swift has an ability like this)
Beta Was this translation helpful? Give feedback.
All reactions