News for hackers. Stuff that matters.
Re:Friends don't let friends do Java by davedx on Wednesday June 29, 2016 @02:26AM (#11999846)
Try a Scala stacktrace if you think that's bad.

You could argue it's a consequence of well designed abstraction, though.

Re:Friends don't let friends do Java by Scarbutt on Wednesday June 29, 2016 @02:42AM (#11999911)
I invite you to see a Clojure one ;)
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?
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?
Re:Friends don't let friends do Java by idobai on Thursday June 30, 2016 @03:38AM (#12007113)
> 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.

Re:Friends don't let friends do Java by gozur88 on Friday July 01, 2016 @12:25AM (#12013865)
I don't see why anyone would find this superior to a stack trace.