by sisalcat · 12y ago · 0 comments
How does it prevent index out of bounds errors and division by zero? No, not even in theory. What a ridiculous claim.
Probably better to handle all out-of-bounds errors the same way.
i.e. a crash.
But it seems you have your mind set, and wont accept any other answer.
(
Yes I know you can install signal handlers for segv, but that is not isolated at a language level like a task failure is with Rust.)Had one the other day when renormalising a Cumulative distribution function wasn't taking into account a possible empty set, and the lookup of the index was invalid due to the division by zero.