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

I have done, and still do, a lot of "shotgun validation" ;-(

But after having read the article it's still not clear how to log illegal values or entities if they can't even be represented in the data model? How do you talk about things you can't name?



You could return an error type wrapping the original value (and any other useful context) using Either instead of Maybe.


You can log them by serializing the pre-parsed data model, unless I've misunderstood the question.




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

Search: