3 ms·
One of my favourite articles published during my career. I've noticed that people often just read the title and assume parsing and validation are somehow mutual
by yakshaving_jgt 2y ago
One of my favourite articles published during my career. I've noticed that people often just read the title and assume parsing and validation are somehow mutually exclusive, but in practice that's not the case. Parsing often includes validation. This is addressed in the article, under Use abstract datatypes to make validators “look like” parsers.
It's the same kind of ground as avoiding primitive obsession.