This doesn't address functions vs macros, but have you considered
call-with-transaction
<http://docs.racket-lang.org/db/query-api.html?q=call-with-transaction#%28def._%28%28lib._db%2Fbase..rkt%29._call-with-transaction%29%29>
?

On Tue, Oct 11, 2016 at 1:10 PM Greg Hendershott <greghendersh...@gmail.com>
wrote:

> 1. "Both" is sometimes a good answer: Write the function. Then maybe
> write a macro to do only what only a macro can do -- here, the
> "de-lambda" sugar, and just call the function to do the real work.
>
> 2. Maybe `with-handlers` would work better?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to