3 ms·
You don't understand exceptions, but you should
- cpleppert 14y agoExceptions are hard to reason about even in the general case. The granularity of what constitutes an exception will cause mismatches across the modules of a software development project. Even worse, exceptions break the control flow and make retries of an operation difficult. Exceptions need to be replaced with encapsulated and explicit error handling within a resumable function that the programmer is forced to handle. In the case of dependent operations you can cut down on code bloat and build more advanced error handling functionality like exponential backoff on top of this foundation.