3 ms·
The perspective is about layered code and reuse. So what is wrong with delegation? My file access library should not know that it is linked in an application wi
by einrealist 11y ago
The perspective is about layered code and reuse. So what is wrong with delegation? My file access library should not know that it is linked in an application with an UI. Throwing an exception just delegates the issue to the code which depends on me. Whether the IO exception is really a problem can only be decided by the user of my library.