dynamic var | since v1.9.456 | clojure.core/*print-namespace-maps* | Edit |
Determines if maps are printed as namespace maps when all keys have the same namespace. Defaults to false.
(println {:user/a 1, :user/b 2})
;; Prints:
;; {:user/a 1, :user/b 2}
(binding [*print-namespace-maps* true]
(println {:user/a 1, :user/b 2}))
;; Prints:
;; #:user{:a 1, :b 2}
*print-namespace-maps* controls whether the printer will print namespace map literal syntax. Defaults to false, but the REPL binds it to true.
(def
^{:dynamic true}
*print-namespace-maps* false)