Re:Where Everything Went Wrong: Error Handling and Error Mes...
by junke on Friday February 19, 2021 @10:35AM
(#26194224)
And if the function can throw different kinds of exceptions, you need a way to express the union of unrelated exceptions (without defining a new variant type), a bit like Polymorphic Variants I guess.
[ Parent
| on HN ]
Re:Where Everything Went Wrong: Error Handling and Error Mes...
by dllthomas on Friday February 19, 2021 @04:39PM
(#26198360)
Ideally also a way of saying "... except for X Y Z" while remaining appropriately polymorphic. I've remarked before that while checked exceptions help make sure you consider every possible situation, imprecision forces you to consider many (too many?) impossible situations as well.