It's funny how things suddenly click.  While out for a run (the only
time I seem to be able find clarity it seems) I started thinking that
it would be nice to have macros for "require" and "use" so that you
don't have to worry about quoting then I realized that's exactly what
ns is for!

I *should* be using ns like this:

user=> (ns user (:require [clojure.contrib.zip-filter :as zf]))

For some reason I was convinced the ns macro was for use in static
library modules that need to be in their own distinct namespace.  That
is - I thought, it was used to create NEW namespaces.  It didn't click
that ns is more general and allows you to modify existing namespaces
and therefore is just as useful in that sense at the REPL.

Cheers,
Paul.

BTW: That patch is great Stephen - if this gets incorporated it will
make future mistakes with the use of ns very easy to diagnose, thanks.
--~--~---------~--~----~------------~-------~--~----~
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