symbolic value | since v1.9.946 | Edit |
Floating point representation of Negative Infinity -∞
.
##-Inf
;;=> ##-Inf
Math with infinities:
(/ -1 0)
;;=> ##-Inf
(Math/log 0)
;;=> ##-Inf
(* 0 ##-Inf)
;;=> ##NaN
Equivalent to the JavaScript symbol -Infinity
:
js/-Infinity
;;=> ##-Inf
(defn- read-symbolic-value
[rdr _ opts pending-forms]
(let [sym (read* rdr true nil opts pending-forms)]
(case sym
Inf Double/POSITIVE_INFINITY
-Inf Double/NEGATIVE_INFINITY
NaN Double/NaN
(err/reader-error rdr (str "Invalid token: ##" sym)))))
(defn- dispatch-macros [ch]
(case ch
\^ read-meta ;deprecated
\' (wrapping-reader 'var)
\( read-fn
\= read-eval
\{ read-set
\< (throwing-reader "Unreadable form")
\" read-regex
\! read-comment
\_ read-discard
\? read-cond
\: read-namespaced-map
\# read-symbolic-value
nil))