*print-namespace-maps*

dynamic varsince 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.


Examples:

(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}

Source docstring:
*print-namespace-maps* controls whether the printer will print
namespace map literal syntax.

Defaults to false, but the REPL binds it to true.
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(def
  ^{:dynamic true}
  *print-namespace-maps* false)