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

If a function in case of bad inputs returns a value in it's codomain, you can't distinguish it from a value returned by a normal call (except in cases where it falls outside of the functions image). This in my opinion is same as undefined behavior. Don't trust the value returned, if inputs were bad.

You know, I didn't actually know that. Thank you for enlightening me.



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

Search: