200 private links
Different thoughts about how we handle faillible and infaillible functions
Similarly as in functional programming where functions and closures are „just values“, here results are „just values“. This opens up some new possibilities.
So how to handle infallible functions that returns an expected error (Can not divide by 0) and infaillible functions (that execute 1 + 2): there is no way to distinguish them with Result
only... Or maybe Result<Result<T, InfallibleError> FallibleError>
Conclusion:
Honestly, I don’t know if there’s any. I just hope to illustrate some reasons why I personally don’t like the Ok-wrapping in as analytical way as possible. I hope we can at least learn to agree to disagree on this point and respect that each one has their reasons for the preferences.