2013/4/7 Josh Kamau <[email protected]>

> You mean even if i use a fully qualified namespace such as
> (clojure.inspector/inspect ....) , i will still need to have 'required' the
> namespace?   ... In java, if i use the fully qualified class name (e.g
> java.util.Date), i dont have to import it.


Yes.

In Java you always compile ahead of time and cannot manipulate packages at
runtime.
Namespaces map in Clojure is populated when namespaces are loaded. In
addition, Clojure code is compiled when it is loaded (unless you AOT the
entire project). clojure.core/require is by far the most common way to
trigger load.

If you use fully-qualified class names of classes in type hints, there is
no need to import them, just like it is in Java.
-- 
MK

http://github.com/michaelklishin
http://twitter.com/michaelklishin

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to