← 返回单词列表

call-with-current-continuation

noun 编号: C00156
Scheme 等函数式编程语言中的一种过程:把程序当前“接下来要做什么”完整保存下来,并把它作为参数交给另一个过程。
💡 记忆钩子
把程序想成一条正在走的路,当前 continuation 就是“从这里往后继续走的整条路线”;call-with-current-continuation 会把这条路线装进一个可传递的对象,再交给别的过程,因此它既能保存当前执行状态,也能让程序跳回或转向这条路线。
📝 学习建议
  • 先把它作为 Scheme 等语言中的专门术语整体记忆,不要按普通英语短语逐词理解。重点掌握“捕获当前后续执行路线,再把它传给过程”的核心概念。
📖 中文释义
noun
  • core 捕获当前延续的过程
    📖 在 Scheme 中,它会把程序执行到当前点之后的整段“后续路线”保存下来,并把这段路线作为参数交给另一个过程。之后程序可以调用这段路线,像从保存的位置继续执行一样。
    💡 常用句型是“调用 call-with-current-continuation 来捕获当前 continuation”或“把 continuation 传给某个过程”。这里的 continuation 不是普通的“继续”动作,而是表示从当前点开始的完整后续执行过程;在解释器、控制流和函数式编程语境中使用。
    countable uncountable
    The program uses call-with-current-continuation to escape from the nested computation.
    程序使用 call-with-current-continuation 跳出嵌套计算。
    We passed the current continuation to the handler with call-with-current-continuation.
    我们用 call-with-current-continuation 把当前 continuation 传给了处理程序。
call-with-current-continuations plural calls-with-current-continuation plural
🔄 变式
call-with-current-continuations plural calls-with-current-continuation plural
🏷 单词标签 & 词根
暂无标签