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

> The only legitimate exception I will accept is when you access invalid memory.

If all memory accesses were done with a function call, e.g. read(void *addr), then by your logic there would be no legitimate need for exceptions.

If you extrapolate into the other direction, exceptions are convenient from a syntactic POV because it avoids littering every operation with an explicit error return mechanism.



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

Search: