[plt-scheme] trying not to use eval

From: Shriram Krishnamurthi (sk at cs.brown.edu)
Date: Tue Oct 29 09:55:01 EST 2002

Rohan Nicholls wrote:

> I want to take the value from a variable and use it as a procedure name, 
>   and have it be evaluated.  

So why not just make the value in the variable be the procedure
itself?

There's almost certainly a simple, clean, elegant way of doing what
you're trying to do that you can accomplish by employing procedures as
values.  The use of EVAL should, indeed, be deprecated as much as
possible.

Shriram


Posted on the users mailing list.