[plt-scheme] trying not to use eval

From: Rohan Nicholls (rohan.nicholls at informaat.nl)
Date: Tue Oct 29 10:15:31 EST 2002

Shriram Krishnamurthi wrote:
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> 
> 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?
> 

Because it is a parameter that is passed to the function that it then 
calls when searching a list of structures.  This parameter changes 
depending on what is being searched for.

> 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

I will try using a procedure.

thanks,

rohan



Posted on the users mailing list.