Scala, Programming, Functional Programming, Type Safety.
constraints. We know that both should be non-empty: Note that both types are aliases for the same and you might have many aliases for non-empty strings that represent different kinds of values (like in the example above). I’m going to address this problem later — let’s focus on validation for now.