4 ms·
Possibly a Result in F#? Is Scala Try the equivalent of an Either monad which automatically catches underlying exceptions from Java interop?
by dvlsg 9y ago
Possibly a Result in F#? Is Scala Try the equivalent of an Either monad which automatically catches underlying exceptions from Java interop?
- bunderbunder 9y agoTo 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.