[racket] try/catch/finally idiom in Racket

From: Sam Phillips (samdphillips at gmail.com)
Date: Fri Oct 8 19:32:44 EDT 2010

Hi All,

I understand using call-with-exception-handler/with-handlers/etc. to
catch exceptions in a block of code, but I'm at a loss to what the best
way to do a "finally" or cleanup action after a block of code.  My
intuition is to use dynamic-wind, but I figure there may be a better way
that I just cannot locate in the manual.

Is there a way to do this that I just cannot find?

Cheers,
Sam


Posted on the users mailing list.