Scala, Programming, Functional Programming, Type Safety.
value class. Are we forced to use plain case classes (with their runtime and memory overhead) or tagging instead? No! Newtype This is when another universal hint from the brilliant Practical FP in Scala book comes to the rescue! Let’s meet scala-newtype — a library that provides wrappers for your