【发布时间】:2019-10-25 17:02:20
【问题描述】:
我正在读SICP的第一章
它表明
To evaluate a combination, do the following:
1. Evaluate the subexpressions of the combination.
2. Apply the procedure that is the value of the leftmost subexpression (the operator) to the arguments that are the values of the other subexpressions (the operands).
假设一个组合(+ 1 2)
根据上述算法,
首先是评估(检索)+ 1 和 2)
第二种是将+应用于1(存储中间状态)
第三是再次评估(检索)中间状态和2。
四是将中间状态应用于2。
对吗?+1的中间状态是什么?
【问题讨论】:
标签: scheme lisp evaluation sicp expression-evaluation