4 ms·
Exceptions aren’t really like “goto”—they’re dynamically bound, dynamically typed, nonlocal “return” statements. Which incidentally is a useless mechanism for e
by evincarofautumn 14y ago
Exceptions aren’t really like “goto”—they’re dynamically bound, dynamically typed, nonlocal “return” statements. Which incidentally is a useless mechanism for error handling unless you have some kind of destruction semantics, which is mentioned in the article. Anyway, given the choice between exceptions and return values for error handling, I go for return values that the compiler can force me to check.