3 ms·
>Sure, if you don't model the error domain correctly you will leak stuff that maybe you shouldn't leak You are implying that there is one correct and self evid
by fauigerzigerk 10mo ago
>Sure, if you don't model the error domain correctly you will leak stuff that maybe you shouldn't leak
You are implying that there is one correct and self evident set of distinctions. I disagree with that. In library design, you're always making assumptions about what users may want. In my opinion, this is even harder when modelling errors, because there are so many possible ways in which callers might want to respond.
>Your example is interesting actually because there are real differences in those types of errors. IO errors are different from the globset errors.
Of course. I'm not complaining about the distinction between io errors and globbing errors here but about the fact that the globset library and its specific error type is leaked.
What if someone (say fastburningsushi) comes along and creates a glob library that absolutely smokes this one? :P