Now that `Result` can be returned from a function ...
# codingconventions
d
Now that
Result
can be returned from a function in 1.5.0, it's very tempting to use it to replace
Either
or other custom
Result
classes... but I have a feeling that creating/catching exceptions (even if inside a function -- not bubbling up) is still wrong and warrents making `sealed interface`s or using
Either
anyways. That leaves
Result
only for wrapping legacy 3rd party libraries to force them to return failures and map them to the domain... Am I right? Or are there still others that prefer using
Result
(or have other uses for it)?