Why Nostr? What is Njump?
2023-06-20 03:51:16
in reply to

🍄🌈🎮💻🚲🥓🎃💀🏴🛻🇺🇸 on Nostr: chovy some people say you should only catch one exception per try, but sometimes you ...

some people say you should only catch one exception per try, but sometimes you have a chain of exceptionable statements; a chain of API calls say where each depends on the success of the previous. If you just have one catch you have to then have a switch to figure out which one it was that failed. But since you don't want to do the subsequent you dont want sequential try/catches unless you short circuit return between them.
Author Public Key
npub1v583a2x76n5fe49agsrg3wupptt4d3a78cc9rjhd97nwauxtcwxqm5x4q8