declare

macrosince v0.0-927imported clojure.core/declareEdit
(declare & names)

Details:

Uses def to establish symbols of names with no bindings.

Useful for making forward declarations.


Examples:

a
;; WARNING: Use of undeclared Var

(declare a)
a
;;=> nil

See Also:


Source docstring:
defs the supplied var names with no bindings, useful for making forward declarations.
Source code @ clojure:src/clj/clojure/core.clj
(defmacro declare
  {:added "1.0"}
  [& names] `(do ~@(map #(list 'def (vary-meta % assoc :declared true)) names)))