IRC channel logs

2025-02-06.log

back to list of logs

<ajarara>hi, would any of you write this macro differently? https://paste.debian.net/1348640/
<ajarara>barring maybe putting the chdir in the in-form -- actually that was the part that made me think "am I doing this wrong" but now it makes sense, esp after looking at with-module-excursion's docs
<ajarara>though if you had to tear down something created in the in form not sure how you would do it, I would just create it in the scope that surrounds the dynamic-unwind
<ajarara>and would end up with this same awkward "do nothing" thunk
<mange>Guix defines it like this, if that helps: https://paste.debian.net/1348643/
<ajarara>yep, it does, thanks. (const #nil) works for the awkward lambda.
<ajarara>definitely scratching my head as to why dynamic-wind takes an in form
<ajarara>oh, nevermind, call/cc resuming. makes total sense
<ajarara>so you have to mutate the binding to communicate between forms unless you aren't using something resumable. Guile fibers have their own version of dynamic-wind too.