1.3.0 permalink Arrow_down_16x16

refer-clojure

clojure.core

  • (refer-clojure & filters)
Same as (refer 'clojure.core )

1 Example top

  • ;; Prevent namespace conflicts like:
    
    ;; `WARNING: time already refers to: #'clojure.core/time in namespace: 
    ;; time, being replaced by: #'time/time`
    
    user=> (ns time
             (:refer-clojure :exclude [time]))
    
    (defn time []
      (System/nanoTime))
    
Log in to add / edit an example.

See Also top

  • 0
    clojure.core/refer

    refers to all public vars of ns, subject to filters. filters can in

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core.clj:5118 top

(defmacro refer-clojure
  "Same as (refer 'clojure.core )"
  {:added "1.0"}
  [& filters]
  `(clojure.core/refer '~'clojure.core ~@filters))
Vars in clojure.core/refer-clojure:
Used in 0 other vars

Comments top

No comments for refer-clojure. Log in to add a comment.