Re:Tuples goodness in .NET 4.7.1
by dvlsg on Monday March 12, 2018 @04:47PM
(#16571447)
Possibly a Result in F#? Is Scala Try the equivalent of an Either monad which automatically catches underlying exceptions from Java interop?
[ Parent
| on HN ]
Re:Tuples goodness in .NET 4.7.1
by bunderbunder on Monday March 12, 2018 @05:17PM
(#16571732)
To an approximation it's that. It also makes for somewhat more readable code since the properties are "result" and "error" rather than "left" and "right".
I've never liked to see much use of Either because it has the same readability issues as tuples.