*print-dup*

dynamic varsince v0.0-927 clojure.core/*print-dup*Edit

Not implemented. In clojure, it can be bound to true to preserve object types when printing, allowing successful object duplication when read back.


Details:

In Clojure, when *print-dup* is set to true, print functions will check for a print-dup multimethod on any given object, rather than their usual print-method. An object type can implement this differently if reading the normal string would not faithfully duplicate the original object.


See Also:


Source docstring:
When set to logical true, objects will be printed in a way that preserves
their type when read in later.

Defaults to false.
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(def
  ^{:dynamic true
    :doc "When set to logical true, objects will be printed in a way that preserves
  their type when read in later.

  Defaults to false."}
  *print-dup* false)