I want to define a tripartite `Result` type which represents success, expected failure and unexpected failure (not for the first time I've tried but I have union types now!). It would be nice if I could find three equal-length words which convey these concepts. Which do you like?
-
-
Replying to @propensive
The thing I don't like about `Value` is that successful computations may be of a non-value type like `None`. Also, I agree that reusing existing common names like `Success` may me a bad idea.
1 reply 0 retweets 0 likes
Replying to @soziflip
Value can be quite an awkward word for this reason, and I found this particularly while writing my lesson on ScalaZONE about Options this week. I'd argue that `None` *is* a value, but it represents the absence of a value in the Option's type. That's inherently confusing... :(
11:16 PM - 10 Feb 2021
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.