Racket 中不同类型的延续 [英] Different kinds of continuations in Racket
问题描述
谁能举一个相对简单的例子来说明 call-with-composable-continuation
和 call-with-current-continuation
在 Racket 中的区别.
Can someone give a relatively simple example of the differences in Racket between call-with-composable-continuation
and call-with-current-continuation
.
我已经完成了球拍指南 10.3 中的示例code>call-with-composable-continuation,以及 The Scheme Programming language section 3.3 中 call-with-current-continuation
的例子,但我不清楚区别.
I've worked through the examples in the Racket Guide 10.3 of call-with-composable-continuation
, and the examples of call-with-current-continuation
in The Scheme Programming language section 3.3 but I'm not clear on the difference.
谁能举一个例子,说明他们在相同的上下文中会给出不同的结果.
Could someone give an example where they would give different results in the same context.
推荐答案
在 Flatt、Yu、Findler 和 Felleisen 的论文Adding Delimited and Composable Control to a Production Programming Environment"中有非常详尽的解释.
A very thorough explanation is found in the paper "Adding Delimited and Composable Control to a Production Programming Environment" by Flatt, Yu, Findler and Felleisen.
http://www.cs.utah.edu/plt/出版物/icfp07-fyff.pdf
这篇关于Racket 中不同类型的延续的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!