https://kotlinlang.org logo
j

joelpedraza

07/27/2017, 3:05 PM
Example use case: class Email(val address: String) should always represent a valid email, and the only public way of creating one should be by copying an exiting one, or a parse method that returns Either<ParseError, Email>