News for hackers. Stuff that matters.
Re:Parse, Don’t Validate by wvenable on Thursday November 07, 2019 @08:25PM (#21479245)
Ignoring all the convoluted type examples here, the simplest case is that you create the type that matches the parsed value. For example, you can create an EmailAddress class that can only contain valid email addresses. Instead of String, you use EmailAddress whenever you need to ensure the valid parsed value.

There are no comments on this comment yet.