[plt-scheme] How to get a function from the symbol representing it?

From: Grant Rettke (grettke at acm.org)
Date: Wed Apr 9 16:09:10 EDT 2008

I was reading the comp.lang.lisp post [Two Questions about Functions]
where the poster asks how to evaluate a function, given only a string
representing the function name.

Is this something that happens very often in Scheme programs?

1. Take the string of the function name "max"
2. Get the function max for that function name
3. Apply that function to some arguments

I'm under the impression that the only way you can take a string and
get the function represented by the symbol that the string represents
is to use eval, quasiquote, and string->symbol

(eval `(,(string->symbol "max") 1 2 3 4) (scheme-report-environment 5))

Is that true?

Posted on the users mailing list.