You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm pretty new to using Result, so perhaps this is possible by another concise means.
A variant of dematerialize that doesn't throw if the error type is NoError would be nice to have. I typically avoid try! throughout my code, and use SwiftLint to warn against its use. My options here are to use a magic comment to disable the SwiftLint rule, or do/catch - neither is particularly appealing. Thoughts?
The text was updated successfully, but these errors were encountered:
I'm pretty new to using Result, so perhaps this is possible by another concise means.
A variant of
dematerialize
that doesn'tthrow
if the error type isNoError
would be nice to have. I typically avoidtry!
throughout my code, and use SwiftLint to warn against its use. My options here are to use a magic comment to disable the SwiftLint rule, ordo/catch
- neither is particularly appealing. Thoughts?The text was updated successfully, but these errors were encountered: