True / false evaluation doesn't work as expected in Scheme
- by ron
I'm trying to compare two booleans :
(if (equal? #f (string->number "123b"))
"not a number"
"indeed a number")
When I run this in the command line of DrRacket I get "not a number" , however , when I
put that piece of code in my larger code , the function doesn't return that string ("not a number") , here's the code :
(define…