What would be the most idiomatic way to function alias in Clojure? And is there a difference in deadlines between the two approaches?
Example taken from Om (Clojurescript, but the syntax in Clojure will be the same):
(defn query->ast
"Given a query expression convert it into an AST."
[query-expr]
(parser/query->ast query-expr))
(def query->ast
"Given a query expression convert it into an AST."
parser/query->ast)
source
share