Re:Friends don't let friends do Java
by gozur88 on Wednesday June 29, 2016 @04:51PM
(#12004709)
So you're not supposed to tell people where errors occur in Scala? Is that like Inigo Montoya fighting with his left hand, because otherwise it's too easy?
[ Parent
| on HN ]
> So you're not supposed to tell people where errors occur in Scala?
You're supposed to use the types `Option` and `Either` or if you're into scalaz then \/ (http://eed3si9n.com/learning-scalaz/Either.html) and Validation (http://eed3si9n.com/learning-scalaz/Validation.html). Throwing exceptions is a childish way to handle errors in FP.