logoalt Hacker News

rixed • yesterday at 9:02 PM • 1 reply • view on HN

Isn't that how exceptions work, as the union of all possible defined exceptions?


Replies

gdotdesign • yesterday at 11:46 PM

I differs that exceptions are hidden and you don't experience them until something happens so it's easier to forget to handle them (at least that is my experience). Here they are up front and visible and forces us to either handle or propagate them.