Much Ado About Nothing – Scala Edition
Scala is a flexible language and it is heavily utilized by various frameworks such as Apache Spark, Apache Kafka. It is interoperable with Java and relies heavily on JVM, for now. The creator of Scala, Martin Odersky called null as “The Million Dollar Mistake”, this pegs the question - how does Scala deal with emptiness? Is it any better than Java? To formulate an opinion for that question we have to know about four classes that can be used in Scala to convey the lack of a value – Nil, None, Nothing, Null. ...