Clojure reader literal for float? -


i wondering why there no clojure reader literal floats. like:

1f 

i found this, has no responses. clojure docs not mention 1 either. there no plans add it, , if not rationale behind this?

as matter of fact, there isn't reader literal 32-bit precisions integers either.

(class 1) ; => java.lang.long  (class 1.0) ; => java.lang.double 

my guess it's opinionated choice. 32-bits 20th century, it's time move on. can still coerce 32-bits types (and short/byte well), @amalloy demonstrated.


Comments