Hacker News new | ask | show | jobs
by throwaway27448 24 days ago
I thought that parsing implied validation. Is this not the case?
1 comments

Validation asserts what’s in the data type, while parsing just creates it. Especially in the context of C structures where you can just create it from a blob of bytes.
Ah, I suppose in my mind parsing precludes the idea of invalid data.