On Aug 30, 10:53 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> I've been playing with the new (ns) method and I like it. When I read
> the docs I found that I wasn't using it correctly, although my usage
> seems to work just fine and be a little nicer ( where I define nicer
> by the number of characters I type ).
>
> The docs suggest this usage:
>
> (ns foo
> (:use (my.lib this that)))
>
> And I found that I had used it as:
>
> (ns foo
> (use lib1 lib2))
>
> The difference is only a colon, but hey, a colon is two keystrokes. Is
> this an alternative accepted usage style, or have I simply stumbled
> upon a pattern that works by coincidence rather than intent; behavior
> that might disappear at some point in the future.
Yup, coincidence, please use as documented. Tools, for instance, might
analyze ns forms looking for :use etc and not find them.
Rich
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---