Thanks for your reply let me get it more clear by taking an example. Suppose I am having 2 file a.clj and b.clj
a.clj code is as follows .................................... (ns com.gettingerror.a) (defn Getting ..........) (defn Error ..........) b.clj code is as follows .................................... (ns com.gettingerror.b (:require [com.gettingerror.a] ) :import [com.gettingerror.a Getting Error])) So, can you please tell me when I load b.clj in REPL then what happens and What difference comes between these Require and Import. On Fri, Sep 19, 2014 at 12:25 PM, Michael Klishin < michael.s.klis...@gmail.com> wrote: > On 19 September 2014 at 10:53:32, Gomzee (gettingerr...@gmail.com) wrote: > > I am new to clojure can any one give me a good example answer to > > differentiate between Use, Require and Import. Specially I > > am getting confused with Require and Import. > > require loads and compiles Clojure namespaces. Import allows you to avoid > using fully-qualified Java class names (the same as import in Java). > > See http://clojure-doc.org/articles/language/namespaces.html > and http://clojure-doc.org/articles/language/interop.html. > -- > @michaelklishin, github.com/michaelklishin > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.