The source for lazy-xml has the following:
(:use [clojure.xml :as xml :only []]
[clojure.contrib.seq :only [fill-queue]])
What is the purpose of using clojure.xml but listing nothing for the :only arguments?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Notice the
:as xmlwhich when combined with the:only []seems to make that line equivalent to(:require [clojure.xml :as xml]). That style might be useful if you want to copy some vars into the local namespace (i.e., a non-empty:only), but allow the rest of that namespace to be explicitly aliased via:as. Since that’s not what he’s doing, it really should just be a:require.