3 ms·
Crash immediately. A divide by zero is always an unrecoverable error. Same story with array out-of-bounds access and null dereferences.
by p0nce 12y ago
Crash immediately. A divide by zero is always an unrecoverable error. Same story with array out-of-bounds access and null dereferences.
- deleted 12y ago[deleted]
- bluecalm 12y agoNot really. Sometimes it's faster to do the calculations and check after the fact if NaN flag was set instead of checking for division by zero at every point. Languages that auto crash on division by zero will always be slower at such applications.