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?
I'm pretty new to using Result, so perhaps this is possible by another concise means.
A variant of
dematerializethat doesn'tthrowif the error type isNoErrorwould 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?