Remix.run Logo
shawn_w 3 days ago

Go straight for delimited continuations, which give you global ones for free.

bjoli 3 days ago | parent [-]

Oh. I meant not using call/cc, but by doing local CPS transformations. This is the simple way, but has limitations with dynamic uses of reset.

A direct implementation is harder, but probably more useful.