Different kinds of continuations in Racket

﹥>﹥吖頭↗ 提交于 2019-12-07 04:45:06

问题


Can someone give a relatively simple example of the differences in Racket between call-with-composable-continuation and 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.


回答1:


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/publications/icfp07-fyff.pdf



来源:https://stackoverflow.com/questions/9607355/different-kinds-of-continuations-in-racket

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!