Re:JEP draft: Exception handling in switch
by cogman10 on Friday April 19, 2024 @01:46PM
(#40089865)
I mostly work in the backend and yeah, the second approach is what I value the most.
Particularly because it can provide a ton of useful context (if logging is correctly setup) and doesn't end up littering the code with try/catch blocks and stuttered logging.
Particularly because it can provide a ton of useful context (if logging is correctly setup) and doesn't end up littering the code with try/catch blocks and stuttered logging.