News for hackers. Stuff that matters.
Re:Parsix: Parse Don't Validate by jinwoo68 on Saturday May 15, 2021 @12:41PM (#27166726)
As they said in README, it’s inspired by Alex King’s Parse, don’t validate [1].

Basically, rather than write a validation function, write a parser that returns a result of a specific type and use that type everywhere else. Then you can make sure the raw inputs are always validated.

[1] https://lexi-lambda.github.io/blog/2019/11/05/parse-don-t-va...

Re:Parsix: Parse Don't Validate by anaerobicover on Saturday May 15, 2021 @01:15PM (#27167007)
Small correcting, the author is named Alexis
Re:Parsix: Parse Don't Validate by jinwoo68 on Saturday May 15, 2021 @02:15PM (#27167550)
Whoops. Thanks for correcting.