In Clojure, negative zero is printed as -0.0 (for example when evaluating -0.0).
This ticket asks for the same for ClojureScript.
Note: The question may arise: Why not print as -0? The ClojureScript reader behaves similarly to Clojure's in that -0 is read in as an integer value, which doesn't have signed zeros, and is thus read in as 0. To properly round trip, this ticket asks that negative zero be printed as -0.0 (presuming that there are to be no changes to the reader behavior.)
In Clojure, negative zero is printed as
-0.0
(for example when evaluating -0.0).This ticket asks for the same for ClojureScript.
Note: The question may arise: Why not print as
-0
? The ClojureScript reader behaves similarly to Clojure's in that-0
is read in as an integer value, which doesn't have signed zeros, and is thus read in as0
. To properly round trip, this ticket asks that negative zero be printed as-0.0
(presuming that there are to be no changes to the reader behavior.)