[plt-scheme] gensym & comparison
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>