>> in the repl when i (use 'foo) vs. (use :foo) they both return nil, so >> it doesn't help me know that the former is right and the latter isn't. >> i think. would it be sensible for use to return true or something more >> positive than nil if it successfully brings in a namespace? > Ok. Ticket (and patch) welcome.
Would it be better to throw an exception if nothing was specified to load instead of returning true/false... Because :foo is a keyword, making it a valid argument to use and require, but no load target is specified. I've uploaded a patch to the ticket Raoul created: https://www.assembla.com/spaces/clojure/tickets/253-Improve-errors-for--use---require--in-REPL user=> (require :foo) java.lang.Exception: Nothing specified to load (NO_SOURCE_FILE:0) user=> (use :foo) java.lang.Exception: Nothing specified to load (NO_SOURCE_FILE:0) user=> (use 'foo) java.io.FileNotFoundException: Could not locate foo__init.class or foo.clj on classpath: (NO_SOURCE_FILE:0) user=> (use 'clojure.test) nil Please clarify if this meets the desired behavior. Regards, Tim. -- 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