Suggestion: Mutate Result<Success, Error>
values
#236
-
It would be interesting if values of type
The implementation might be more challenging than implementing changes like |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
As you've probably seen, we already mutate But, this seems to be about something else. Could you give some more concrete examples of where the patterns you're suggesting would help? I would tend to assume that, generally, the For example I don't see why we would expect It is a rare but valid case to have maybe This does suggest a different idea though, which is that if we see both type parameters to the |
Beta Was this translation helpful? Give feedback.
We do have the
error_values
config and command line option.So I think in this tree you might use something like
--error ::sysexits::ExitCode::Software
and it might exercise the error handling case. I'll have a look. I'm a little surprised that it's not already generatingOk
values...