[plt-scheme] Semantics of let

From: Jim Blandy (jimb at red-bean.com)
Date: Thu Feb 23 19:09:29 EST 2006

On 2/23/06, Greg Woodhouse <gregory.woodhouse at sbcglobal.net> wrote:
> Thanks. I'll try associating a hash table with each lambda expression
> in the environment. (There's probably something wrong with THAT
> idea,too, but well, we'll see.)

I'm not sure exactly what you mean, but go for it!

Here's a test program to try out:

(define f (lambda (x) (lambda (y) (+ x y))))
(define g1 (f 1))
(define g10 (f 10))

(g1 100) ; should evaluate to 101
(g10 100) ; should evaluate to 110


Posted on the users mailing list.