Scala, Programming, Functional Programming, Type Safety.
applicable to object-oriented programming. In this post I’d like to show you how to harden type safety using only a couple of handy techniques, described in the first chapters of the book. Let’s start with defining the problem. Good old plain case class I’m going to show you the refined types