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

Error values have a long history. Plenty of C stdlib functions return a status/error code, with the result being provided via a pointer the function was passed. Common lisp lets you return multiple values, which can be used to signal success/failure (it's how retrieving nil from a hash map is disambiguated from not finding the key in the map) or include related data, e.g. the fractional part of a truncated number.


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

Search: