Hi Marc, 

Nice to see you here ;-)

> Note that you can use symbols with the case construct.  In other words, these 
> two expressions are equivalent if str is a string:
> 
>  (cond ((string=? str "foo") 111)
>        ((string=? str "bar") 222)
>        (else                 333))
> 
> and
> 
>  (case (string->symbol str)
>    ((foo) 111)
>    ((bar) 222)
>    (else  333))
Agree with a minor warning. Although its probably not a problem in that
particular situation but in my own programs I try to limit the use of symbols
as much as possible as these objects are never collected.

-- 
Manuel

Reply via email to