string= != string=?

-elf

On Sat, 16 Feb 2008, Matt Gushee wrote:

What's up with this?

 CHICKEN
 Version 3.0.0 - linux-unix-gnu-x86     [ manyargs dload ptables
   applyhook ]
 ...

 csi> (require-extension srfi-13)
 ; loading library srfi-13 ...
 csi> (require-extension posix)
 ; loading library posix ...

 csi> (define sysname (car (system-information)))
 csi> (string= sysname "Dogbreath")
 #f
 csi> (string= sysname "Linux")
 5

I realize that from the perspective of boolean tests, 5 is just as true as #t, so maybe it doesn't really matter, but wouldn't it be preferable to return a canonical boolean value? Is there a big performance advantage to returning an integer?




_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to