After reading this post, I decided it was time I thought about error handling a bit more in my current project.
Then I came across this post which overall seemed like a pretty simple setup for integrating to a single point for error handling.
However, immediately upon going to implement it I realized that an aliased
Result<T> seemed problematic for shadowing the standard
Result<T, E>. And apparently others have had this question as well, because I then found this discussion suggesting using
I'm now wondering, is there a community standard? Or if something else like
Expect<T> might be suitable. Thought I suppose that's the reverse logic from
.expect(), so perhaps
Correct<T> might play nicely with use of
? for unwrapping...
Does anyone have any good ideas on the matter?