let is just a macro for a function application

3 2020-02-11 10:48

You would have gotten more out of SICP if you had paid attention while reading it.

The way this happens is that the let expression is interpreted as an alternate syntax for

((lambda (<var1> ...<varn>)

No new mechanism is required in the interpreter in order to provide local variables. A let expression is simply syntactic sugar for the underlying lambda application.



do not edit these