The "right way" to use, most of the time, is inside an ns:

(ns foo
   (:use [clojure.contrib.str-utils :only (str-join re-split)]))

However, for the interactive examples in the book, it is nice to just  
switch namespaces at the REPL, where ns is bad form. So instead, you  
would do this:

(in-ns 'bar)
-> #<Namespace bar>
(clojure.core/use [clojure.contrib.str-utils :only (str-join re-split)])
-> java.lang.ClassNotFoundException: clojure.contrib.str-utils  
(NO_SOURCE_FILE:10)

Except, as you can see, it doesn't work. You have to quote the vector:

(clojure.core/use '[clojure.contrib.str-utils :only (str-join re- 
split)])
-> nil

Is this by design? Quoting a vector doesn't feel right.

Stuart

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