Trying to understand delimited continuations with Guile scheme
I managed to grasp the vanilla conts (call/cc) thanks to this video (it's great)
Now I'd like to move to delimited conts
I have this minimal example of early exit made with call/cc
(define (my-early-exit)
(let ((
my-val (call/cc
(lambda (the-continuation)
(display "this will be executed")
(display "\n")
(the-continuation 5) ;;early exit
(display "this will not be executed")))))
(display my-val)))
Ok, I can run this, I understand what it does
How can I write a piece of code equivalent to this one using shift and reset ?