[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Error Continuations

This page is part of the web mail archives of SRFI 34 from before July 7th, 2015. The new archives for SRFI 34 contain all messages, not just those from before July 7th, 2015.

This SRFI is strikingly similar to the system in SISC, but with one deficiency. In SISC, when an error is raised, a two argument handler may intercept the error. The first argument is an error message, which is akin to the first argument in this SRFI's scheme. The second is a continuation captured at the location of the error, which among other things allows the code to be restarted by applying the continuation with a value that replaces the value that would have been returned by the expression that raised the error.

This, combined with support for inspecting continuations, allows for powerful debugging capabilities, and more flexibility in the
control of program flow when errors occur.

I refer you to http://sisc.sourceforge.net/manual/html/ch03.html#ErrorHandling for a more detailed description.