
18 Jul
2006
18 Jul
'06
5:56 p.m.
On 7/18/06, Sohail Somani <s.somani@fincad.com> wrote:
I just don't see the point, except as an academic exercise
The point is partly academic, as I am working on learning MPL. However, I think that this technique, or some derivation thereof, can help make code more maintainable, since you can reuse my_exception_handler whenever you want to handle the same exception in the same way, even though you catch it in a different place. With catch blocks the only recourse, so far as I can tell, is to basically copy-and-paste the catch code to each location where you need the exception handling code. Jeremy