On Mon, Mar 19, 2012 at 3:59 AM, Daniel Farina <[email protected]> wrote:
> I think a good example of this is given in a chapter of "Practical Common 
> Lisp":
>
>  http://www.gigamonkeys.com/book/beyond-exception-handling-conditions-and-restarts.html
>
> CL's flavor of "exception" handling is probably the only one I've
> found gave me sufficient control comparable to rolling my own
> constructs in a C program, checking everything at the lowest levels of
> execution with maximum information without being as laborious.

A similar technique to restarts can be implemented using tasks and
message passing. If a task handles failure by sending a message to a
supervisor task and yielding until it receives a response, the
supervisor can then tell the failing task either to recover in a given
way or to abort.

-Joe
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to