Macro
Defines an alias for a var: a new var with the same root binding (if any) and similar metadata. The metadata of the alias is its initial metadata (as provided by def) merged into the metadata of the original.
; clojure/contrib/def.clj:66 (defmacro defalias ([name orig] `(do (alter-meta! (if (.hasRoot (var ~orig)) (def ~name (.getRoot (var ~orig))) (def ~name)) conj (apply dissoc (meta (var ~orig)) (keys (meta (var ~name))))) (var ~name))) ([name orig doc] (list `defalias (with-meta name (assoc (meta name) :doc doc)) orig)))
Copyright (c) Rich Hickey. All rights reserved.
The use and distribution terms for this software are covered by the Eclipse Public License 1.0, which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.