rename Result
variants Ok
/Err
to Pass
/Fail
#62
Labels
dora-diverge
will cause substantial diversion from dora
library
changes to the Core standard library
Milestone
I was never too happy with the existing naming approaches for the
Result
type:Success
/Failure
Option
'sSome
/None
Option
overResult
Ok
/Err
Err
is not a wordThe new naming ticks all the boxes:
Pass
/Fail
Some
/None
It's a minor thing, but it's nice to have found a good design even where it doesn't matter that much!
The only concern I have is that I might find a type in a testing-related context where
Pass
/Fail
would fit even better!The text was updated successfully, but these errors were encountered: