Re:Friends don't let friends do Java
by idobai on Wednesday June 29, 2016 @02:34AM
(#11999873)
I've never met with (large) stack traces in Scala because throwing exceptions is NOT ok in Scala. But can you share your experience?
[ Parent
| on HN ]
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?
> 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.