SICP习题4.2

1 · douyipu · Dec. 24, 2022, 3:12 p.m.
1. 题目 Exercise 4.2: Louis Reasoner plans to reorder the cond clauses in eval so that the clause for procedure applications appears before the clause for assignments. He argues that this will make the interpreter more effcient: Since programs usually contain more applications than assignments, definitions, and so on, his modified eval will usually check fewer clauses than the original eval before identifying the type of an expression. (define (eval exp env) (cond ((self-evaluating?...