News for hackers. Stuff that matters.
Re:"Parse, don't validate" through the years with C++ by gspr on Thursday April 30, 2026 @09:17AM (#47961972)
> Disregarding the article for a second, has anyone else had the pattern that "parse don't validate" makes sense in object oriented style, but less sense in functional style programming?

Parse, don't validate was written around Haskell!

Re:"Parse, don't validate" through the years with C++ by actionfromafar on Thursday April 30, 2026 @09:40AM (#47962301)
What I tried and apparently failed to express with "parsing and validating blurs into each other." was that parsing more easily becomes "just what you do" in functional style of programming. To the point that nowadays I can no longer really remember what I did back when I tried to "validate" things instead of parsing them.