3 ms·
Right, which is why they are reserved for situations where you are not trying to "jump somewhere", but just want to give up and crash, because further execution
by kazagistar 13y ago
Right, which is why they are reserved for situations where you are not trying to "jump somewhere", but just want to give up and crash, because further execution in the current context has failed. If some external calling context really does not want to crash, the implementation of failing function doesn't and shouldn't care.
- deleted 13y ago[deleted]
- zaphar 13y agoThat might be what they are intended to be reserved for but the reality of what they get used for is much more of the "Jump Somewhere" sort.
- bashinator 13y agoReally? I had it drilled into me from day 3 or so, that "EXCEPTIONS ARE NOT FLOW CONTROL!"
- zaphar 13y agoAfter more than a decade of seeing exceptions in use it has become very apparent that no matter what they might have been told when they learned about exceptions most people use them for flow control. Mostly because they are a way of doing flow control.