3 ms·
If they are really exceptional situations that should never happen, just crash the process. The moment recover was added they become just another error handling
by usrnm 2y ago
If they are really exceptional situations that should never happen, just crash the process. The moment recover was added they become just another error handling mechanism
- randomdata 2y agoYou would crash the process. But, sometimes it's useful to do a little bookkeeping first.
- usrnm 2y agoThat's not how recover is used in practice
- randomdata 2y agoRight. In practice, people don't even realize that Go has an exception handling system (see rest of thread) to use.