Tail calls, destructors: pick one. As much as the FP-er in me hates to say it, I think in systems code destructors are too useful to cut.
@samth Does dynamic-wind cause frames to be promoted to heap? Not sure how it works without either preventing TCO or silently heapifying.
-
-
@pcwalton dynamic-wind calls its second argument in non-tail position. This is like calls not being tail when d-tors are in scope. -
@samth Ah, ok. dynamic-wind is more syntactically explicit. Destructors are implicit and make tail positions harder to see at a glance.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.