Re:Strategic Scala Style: Principle of Least Power
by domlebo70 on Saturday March 12, 2016 @06:55AM
(#11272483)
> If you don't know what can go wrong, use exceptions
Disagree. Exceptions are broken in Scala. I think it's better to do what was suggested in an earlier point, and return an ADT. You should wrap them and return an ADT constructor taking in the exception.
Disagree. Exceptions are broken in Scala. I think it's better to do what was suggested in an earlier point, and return an ADT. You should wrap them and return an ADT constructor taking in the exception.