On Oct 24, 2008, at 9:44 AM, stephan wrote:

> user> (use 'clojure.contrib.duck_streams)
> gives me this exception:
> java.lang.Exception: namespace 'clojure.contrib.duck_streams' not
> found after loading '/clojure/contrib/duck_streams/
> duck_streams.clj' (NO_SOURCE_FILE:0)

        - Lisps traditionally favor names with hyphens in them and Clojure  
continues that tradition.

        - For interop with Java, Clojure Namespace names map to corresponding  
Java Package names which in turn map to locations in ClassPath.

        - Unfortunately, names with hyphens in them are not legal Java  
Package names. (see 
http://java.sun.com/docs/books/jls/third_edition/html/packages.html#7.7 
  ).

        - To handle this clash, Clojure automatically converts hyphens to  
underscores to produce the file/directory/package names associated  
with a namespace.

        - The namespace you're looking for above is 'clojure.contrib.duck- 
streams' (with a hyphen).

--Steve


--~--~---------~--~----~------------~-------~--~----~
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
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to