3 ms·
> Also, you have to deal with developer mistakes and what happens when they call incorrectly. There is only one safe(ish) way to deal with programmer errors: c
by planede 3y ago
> Also, you have to deal with developer mistakes and what happens when they call incorrectly.
There is only one safe(ish) way to deal with programmer errors: crash. Hopefully loudly and early enough so it gets discovered in testing.
- lixquid 3y agoWhy wait until then? The loudest and earliest crash you can get is a failure to compile with a rich type system (obviously, when possible).
- maxcoder4 3y agoI assume you don't write device drivers or operating systems? Predicting every possible failure reason for a function is impossible. Every function is a maybe function.
- kibwen 3y agoIf enumerating every possible failure mode of a function is impossible, then that would underscore the importance of failing fast and dynamically restarting components in order to provide robustness in the face of unforeseeable errors.