Scala, Programming, Functional Programming, Type Safety.
issue we have to combine refined types with the solution from the previous step: tagging or value class. In this example I’ll use the latter: Unfortunately this won’t compile because value classes may not wrap other user-defined value classes. In other words there is no way to use Refined type in a