Changes for clojure.pprint/*print-suppress-namespaces*

philos99 on Sat, 19 Apr 2014
(require '[clojure.pprint :as pp])

(defmacro plus [n1 n2]
  `(+ ~n1 ~n2))

(macroexpand-1 '(plus 3 4))
;=> (clojure.core/+ 3 4)


(alter-var-root #'pp/*print-suppress-namespaces* (constantly true))

(macroexpand-1 '(plus 3 4))
;=> (clojure.core/+ 3 4)

;; comes into effect only in pprint.
(pp/pprint (macroexpand-1 '(plus 3 4)))
;=> (+ 3 4)
philos99 on Sat, 19 Apr 2014
(require '[clojure.pprint :as pp])

(alter-var-root #'pp/*print-suppress-namespaces* (constantly true))

(defmacro plus [n1 n2]
  `(+ ~n1 ~n2))

(pp/pprint (macroexpand-1 '(plus 3 4)))   ;=> (+ 3 4)
(pp/pprint (macroexpand   '(plus 3 4)))   ;=> (+ 3 4)