3 ms·
I expected that code to print "hello everyone!" forever but apparently the top level acts as a delimiter. This is why I think delimited continuations make more
by maxiepoo 11y ago
I expected that code to print "hello everyone!" forever but apparently the top level acts as a delimiter. This is why I think delimited continuations make more sense since even call/cc is already "delimited" but with no concept for it.
A version that would print forever:
(let ((_ (display ...))) (saved-continuation "everyone"))
- csl 11y agoExactly! The top-level is actually special in many circumstances. Some people have suggested removing call/cc from Scheme. I don't know if they want to put delimited continuations in its stead. See http://okmij.org/ftp/continuations/against-callcc.html http://okmij.org/ftp/continuations/against-callcc.html