[racket] try/catch/finally idiom in Racket

From: Sam Phillips (samdphillips at gmail.com)
Date: Fri Oct 8 23:18:16 EDT 2010

On Fri, Oct 8, 2010 at 4:40 PM, Jay McCarthy <jay.mccarthy at gmail.com> wrote:
> I use dynamic-wind for this. If there is something better, I don't
> know what it is. dynamic-wind is a little bit funny though because if
> you capture continuations then the in/out handlers can run multiple
> times which might defy your expectations. You could set up a
> continuation barrier on the inside to ensure that doesn't happen
> though.

This is pretty much what I was afraid of with using dynamic-wind.


Posted on the users mailing list.