News for hackers. Stuff that matters.
Re:Parse, Don't Validate (2019) by mrkeen on Tuesday March 07, 2023 @10:13AM (#35056190)
That's fine.

Validation would be:

   Email email = new Email(anyString);
   email.validate();
Parsing (in OP's context) would be:

   Either<Error, ValidEmail> eEmail = Email.from(anyString);

There are no comments on this comment yet.