[plt-scheme] gensym & comparison

From: YC (yinso.chen at gmail.com)
Date: Fri Jun 20 19:10:10 EDT 2008

On Fri, Jun 20, 2008 at 3:58 PM, Chongkai Zhu <czhu at cs.utah.edu> wrote:

> The idea of gensym is to generate symbol that is not eq? to any other
> symbol. So I don't know what you are asking here. You can always convert
> symbol->string, and then compare string, but that's something against the
> reason to have gensym.
>
> Chongkai


Thanks Filipe and Chongkai for the clarification - I missed the word
"uninterned".  I currently use gensym as a hack for keys in a hashtable,
hence my need to compare.  But as Filipe says there are other solutions, and
I'll look elsewhere.

Thanks,
yc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20080620/c110b593/attachment.html>

Posted on the users mailing list.