John Harrop wrote:
> On Sat, Nov 21, 2009 at 9:03 PM, Alex Osborne <a...@meshy.org
> 
> (:import package1 class class class) (:import package2 class class)
> 
> 
> I am. Especially since the latter already works.
> 
> Alternatively, force (or at least allow!) square brackets, like 
> elsewhere in Clojure when a list is data rather than starting with 
> something operator-ish. Here, :import at least is operator-ish in its
>  semantics; package1 and package2 are not.
> 

To me the paren syntax makes more sense as there is something special
about the first thing in the list:

(pkg class class) => [pkg.class pkg.class]

While I normally expect vectors to be just a list of things, no special
meaning:

[class class] => [class class]

So my Clojure imports tend to look like this:

(:use (prefix (ns :only [a b])))

Meaning import prefix.ns/a and prefix.ns/b

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

Reply via email to