4 ms·
does it provide call/cc? I assume continuations mixed with arbitary shell code is a bit complicated
by dark-star 3y ago
does it provide call/cc? I assume continuations mixed with arbitary shell code is a bit complicated
- michaelsbradley 3y agoRacket supports multiple kinds of continuations, not just call/cc: https://docs.racket-lang.org/reference/cont.html https://docs.racket-lang.org/reference/cont.html Toward the end of the demo video it mentions they are supported in Rash.
- dark-star 3y agoYes, but they're all just syntactic sugar around call/cc though :) I guess I'll have to check out Rash, it looks really interesting
- michaelsbradley 3y agoI may be wrong, but I don't think delimited continuations are just syntactic sugar around call/cc, i.e. the former require operators that depart from the semantics of the latter (undelimited continuations).
- dark-star 3y agoI think delimited continuations can be implemented with call/cc if you let the continuation "leak" out of the call/cc body. I'm pretty sure you can implement most, if not all delimited continuation constructs using call/cc. Maybe not in the fastest/most optimal way, but at least theoretically it should be possible It's been a while that I used Scheme though, so my memory may be a bit rusty and I might have missed some things