clojure - Difference between Use, Require and Import -


can 1 give me example answer differentiate between use, require , import.

i hope can me.

require ensures clojure namespace has been compiled , instantiated.

  • optionally updating source if provided :reload key
  • optionally creating aliases if :as key provided.
  • optionally modifying current namespace include mappings required namespace's vars, if :refer key provided. mapping visible inside requiring namespace, , not transitive other namespaces requiring it.

use identical require in action, except default modify current namespace via refer function include target namespace's vars if :refer :all had been provided. accepts :exclude, :only, , :rename keys guide modification of current namespace.

import adding mappings of class names current namespace, package qualifiers not need used.


Comments

Popular posts from this blog

Regex find and replace between <div class="customclass"> and </div> tag -

jpa - Passing entitymanager from reflection method -