expressions

Scala Beginner Series (1) : Basics

Reading Time: 4 minutes This series is all about the taste of Scala. It is best suitable for all the newbies in Scala. So here we go… This article will cover the fundamentals of Scala language. Values In Scala, we work with values: Values are used to define constants. val modifier means constant or immutable that means we cannot change its value once it is created. Thus reassignment to val is prohibited. It Continue Reading

ScalaKnol: Why returning a value in finally is a bad idea

Reading Time: < 1 minute For those of us who are coming from an imperative background, we are used to using try catch rather losely. Ok, I am not trying to generalize here but a majority of us do so. When we come to the Scala world, we realise that like other expressions in scala, try-catch-finally would result in a value. The general practice recommended is that finally should be Continue Reading