递归流程 与 迭代流程

递归流程: 当流程建立一个延迟操作链时,就会发生扩展。收缩发生在实际执行操作时。这种以延迟操作链为特征的流程称为递归流程。 (The expansion occurs as the process builds up a chain of deferred operations . The contraction occurs as the operations are actually performed. This type of process, characterized by a chain of deferred operations, is called a recursive process. )

 

迭代流程:一般来说,迭代过程是一个状态可以由固定数量的状态变量总结的过程,以及一个固定的规则,该规则描述了当过程从一个状态移动到另一个状态时,状态变量应该如何更新,以及一个(可选的)结束测试,该测试指定了过程应该终止的条件。(In general, an iterative process is one whose state can be summarized by a fixed number of state variables, together with a fixed rule that describes how the state variables should be updated as the process moves from state to state and an (optional) end test that specifies conditions under which the process should terminate.)     

引用自 SICP

你可能感兴趣的:(JavaScript)