This is the mail archive of the guile@cygnus.com mailing list for the guile project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
"Harvey J. Stein" <hjstein@bfr.co.il> writes: > Consider the following: > > hjstein@bacall:~$ guile > guile> (eq? (string->symbol "-a") '-a) > #t > guile> (eq? (string->symbol "-b") '-b) > #t > guile> (eq? (string->symbol "-i") '-i) > #f > > Is this expected behavior for an R4RS scheme which supports complex > number? If so, it's a real pain in the ass for command line > processing... yeah, PITA is exactly right. i had to work around it in thud by using (worse: special-casing) the string representation rather than the symbolic. blech. some more data: (eq? -i '-i) => #f (equal? -i '-i) => #t (eq? '-i '-i) => #f (equal? '-i '-i) => #t thi