News for hackers. Stuff that matters.
Re:Parsix: Parse Don't Validate by coderintherye on Saturday May 15, 2021 @12:45PM (#27166769)
The linked blog post explains it pretty well. Essentially, it seems to be solving for unexpected cases or incorrect validation by using of static typing and passing the expected type back in the return rather than a boolean. I'm not sure I've encountered enough issues with validation functions to use this pattern, but it does seem like a more robust way of writing them.

There are no comments on this comment yet.