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 _______________________________________________ Cmdist mailing list [email protected] https://cm-mail.stanford.edu/mailman/listinfo/cmdist
