[CM] Bug or expected? Quoting numbers.
chohag at jtan.com
chohag at jtan.com
Mon Sep 22 15:09:59 PDT 2025
I'm not sure if this is a bug or expected behaviour from how numbers
are parsed: I had (list 'blah '+1) expecting the second element to
be a symbol and was a bit surprised that it became a real 1.
Further testing reveals that the same thing happens with - as you'd
expect, but inf differs from nan where, ironically, nan looks more
like a number than inf does:
(display (symbol? '+ ))(newline)
#t
(display (symbol? '+1 ))(newline)
#f
(display (symbol? '+1+ ))(newline)
#t
(display (symbol? '+nan.0 ))(newline)
#f
(display (symbol? '+nan. ))(newline)
#f
(display (symbol? '+nan ))(newline)
#t
(display (symbol? '+inf.0 ))(newline)
#f
(display (symbol? '+inf. ))(newline)
#t
(display (symbol? '+inf ))(newline)
#t
Matthew
More information about the Cmdist
mailing list