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
Post a Comment