when transferring "special" Double/Float values, namely NaN, Infinity
and -Infinity using prn/read mechanics, these values are received as
Symbols. This surprised me quite a bit. Wouldn't it be a reasonable
fix to prn these values as
#=(java.lang.Double/valueOf "<symbol>")
(<symbol> one of the above)?

At least in my REPL-Tests this seems works fine, e.g.

(read-string "#=(java.lang.Double/valueOf \"Infinity\")")
=> Infinity

(class (read-string "#=(java.lang.Double/valueOf \"Infinity\")"))
=> java.lang.Double

...Jochen

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to