4 ms·
It's always weird to me when people talk about using exceptions for control flow. Exceptions are, pretty much explicitly, a control flow mechanism. That's what
by kenko 11y ago
It's always weird to me when people talk about using exceptions for control flow.
Exceptions are, pretty much explicitly, a control flow mechanism. That's what they do, they transfer control from one place to another. It's like people are getting hung up on the name.
- ignoramous 11y agoExceptions, in Java land at least, are very costly (think interrupts and context switching). To do flow control using them is shooting yourself in the foot.