Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> This is textbook "parse, don't validate" anti-pattern.

How so? “Parse, don’t validate” implies converting input into typed values that prevent representation of invalid state. But the parsing still needs to be done correctly. An unchecked unwrap really has nothing to do with this.





GP completely misunderstands “parse, don’t validate” and also calls it an anti-pattern. GP clearly has no idea what this is.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: