Quantcast
Channel: alvinalexander.com - field
Viewing all articles
Browse latest Browse all 31

Scala best practices: null values, Option, Some, and None

$
0
0

In his excellent book, Beginning Scala, David Pollak provides a series of statements that can be considered as a recipe for avoiding the use of null values in your Scala code. I've organized his statements here in the following three sections.

1) General rules about null and Option

We begin with the following general rules regarding the use of null values in Scala code:

read more


Viewing all articles
Browse latest Browse all 31

Trending Articles