user=> (defn foo []
(undefined-func))
; Evaluation aborted. Unable to resolve symbol: undefined-func in this context
nil
user=> (declare undefined-func)
#'user/undefined-func
user=> (defn foo []
(undefined-func))
#'user/foo
(defmacro declare
"defs the supplied var names with no bindings, useful for making forward declarations."
{:added "1.0"}
[& names] `(do ~@(map #(list 'def (vary-meta % assoc :declared true)) names)))
Comments top
No comments for declare. Log in to add a comment.