Idiomatic Error Handling in Scala

Reading Time: 3 minutes Error handling in Scala can just be written like Java. Put in a little bit of pattern matching magic and you are done. However, given a little use of Scala built-in terrific beauties it can be made much better. Let us have a look. Let us look at a quick example def sayHello(any: Any) = { any match { case x: String => "Hello" case Continue Reading