I like where you're going with jewel.clj in clojure-contrib. I
started hacking on it to add some features I wanted:
1. Separated out a "load-uri" function from "load-system-resource",
made both public;
2. Modified "require" to not automatically "refer" namespaces;
3. Added "use" as short-hand for require & refer;
4. Made "require" and "use" accept multiple jewel names.
The simple case, (use 'foo 'bar 'baz), is succinct; more complex forms
might look like:
(use 'foo 'bar '(baz :in "bazzer/quux" :only (baz-it)))
Only problem is with the placement of the "force" options, which
should probably apply to the whole (use ...) form rather than
individual jewels. That's for another day.
Patch attached; I haven't touched the one in SVN. What do you think?
-Stuart
I like where you're going with jewel.clj in clojure-contrib. I
started hacking on it to add some features I wanted:
Only problem is with the placement of the "force" options, which
should probably apply to the whole (use ...) form rather than
individual jewels. That's for another day.
Glad to see you guys making progress, and should have chimed in
earlier, but I really dislike 'jewels' - seems so derivative of Ruby's
gems, and, well, too cute. Could we just call them libs? (I know, I'm
old-fashioned :)