3 ms·
if you have multiple files that are read in a function, and they might lead to different error handling... then sometimes yeah, perhaps they should be different
by Groxx 1y ago
if you have multiple files that are read in a function, and they might lead to different error handling... then sometimes yeah, perhaps they should be different types so you are guaranteed to know that this is a possibility, and can choose to do something specific when X happens. or to be informed if the library adds another file to the mix.
it isn't always the case, of course, but it also isn't always NOT the case.