Apologies up front for the sensational headline. I have a colleague who thinks this. Not only have I pointed out that they don't have equivalent functionality (scala.util.Try does more) but also that the monadic error checking approach pre-dates Java's try / catch expression. Would love to hear other thoughts as well, even from anyone else who thinks Try is syntactic sugar.
--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I think it it worth to point out that virtually every programmer starting to learn Scala having Java background will very soon ask the question what is the actual difference between checked exception and Try outside of the syntax. I'm not sure if Scala docs and books pay enough attention to explain it and provide complete picture so that reader can easily collect understanding on differences, purpose and use cases of each option.
Petr
--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
13 okt. 2016 kl. 12:00 skrev Viktor Klang <viktor...@gmail.com>:Try has quite literally *nothing* to do with checked exceptions.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+...@googlegroups.com.
And more importantly, the type of the Exception is not surfacing as a constraint for the caller to satisfy.
(like try in Scala but unlike try in Java)
--
Cheers,
√