← Back to context

Comment by wbl

5 days ago

Why exactly do you have complex error analysis happening above a component that has the error? That's anti modular.

Because almost my definition you can't handle errors in the component, otherwise you would have a conditional and not an error.

E.g. if I do some IO like "make a copy of these files" and get an error/exception, it's only the caller or maybe even that caller's caller that can properly deal with this condition (e.g. to decide that we will skip the erroneous files or retry).