Comment by lexi-lambda
6 years ago
The idea really is that parsing subsumes validation. If you’re parsing, you don’t have to validate, because validation is a natural side-effect of the parsing process. And indeed, I think that’s the very thesis of the blog post: parsing is validation, just without throwing away all the information you learned once you’ve finished!
I understood the article, and I see your point, but my main feedback is that when I read the title I assumed that you were going to describe some way where you would parse input without validating it.
FWIW, I don’t read that implication in the title.
If validation is necessarily included in parsing, then the title -- parse && !validate -- is impossible.
The title of the post says "don't validate," and so I initially expected it to relate to the mantra of being liberal in what you accept, etc.
1 reply →