Re: [racket-users] Equivalent of dynamic-wind post-thunk for with-handlers

2018-01-24 Thread Alexander McLin
On Wednesday, January 24, 2018 at 5:54:44 PM UTC-5, Alexis King wrote: > > Based on your question, why not just use dynamic-wind in combination > with with-handlers? Just keep in mind that the post-thunk could be > called multiple times if there is a continuation jump into value-thunk, > so you

Re: [racket-users] Equivalent of dynamic-wind post-thunk for with-handlers

2018-01-24 Thread Alexis King
Based on your question, why not just use dynamic-wind in combination with with-handlers? Just keep in mind that the post-thunk could be called multiple times if there is a continuation jump into value-thunk, so you should also wrap the whole thing with call-with-continuation-barrier if it’s importa

[racket-users] Equivalent of dynamic-wind post-thunk for with-handlers

2018-01-24 Thread Alexander McLin
I have a with-handlers expression which handles several exceptions appropriately and raises user-error exceptions, I have some additional code I'd like to be executed after the exception have been handled, analogous to dyanmic-wind's post-thunk argument or like the finally clause of a conventio