≈ the.bay.news

Why are error sets not used more often?

Ziggit
Why are error sets not used more often?
I’ve been trying to understand error handling better, and figuring out how to not just spam try’s everywhere. To me, one thing that helps in this regard is the error sets: it helps you see at a glance all the possible errors a function can return, and choose which ones you would like to handle. This is a lot more helpful then a lone !, which just tells you it might return some error. How can you be expected to handle all possible ways it can fail then? The langref even says error sets are unc...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.