内容 4.1 The Metacircular Evaluator · 314
练习 自检推理
Exercise 4.12: The procedures
define-variable!, set-variable-value! and
lookup-variable-value can be expressed in terms of more abstract
procedures for traversing the environment structure. Define abstractions that
capture the common patterns and redefine the three procedures in terms of these
abstractions.
练习 4.12:过程 define-variable!、set-variable-value! 和 lookup-variable-value 可以用遍历环境结构的更抽象的过程来表达。请定义能捕捉公共模式的抽象,并用这些抽象重新定义上述三个过程。
我的笔记 自动保存