Handling Null

Scala Nuggets: Avoiding the Billion Dollar Mistake of Null

Reading Time: 2 minutes Historically, the use of null has often been referred to as the billion dollar mistake. It has led to more problems than solutions Tony Hoare introduced Null references in ALGOL W back in 1965 “simply because it was so easy to implement”, says Mr. Hoare. He talks about that decision considering it “my billion-dollar mistake”. Let us look at the following code in Java which Continue Reading