Tag: Case Class

Scala case classes in depth

For this post I’ll consider the following simple case class unless otherwise specified:

case class Person(lastname: String, firstname: String, birthYear: Int)

In this post:

Common knowledge about case classes

When you declare a case class the Scala compiler does the following for you:

Read more...