(deftype X [] Object (toString [this] (str "(instance? X this) -> " (instance? X this)))) (clojure-version) ; -> "1.2.0" (str (X.)) ; -> "(instance? X this) -> false"