On Sat, Nov 21, 2009 at 9:03 PM, Alex Osborne <a...@meshy.org> wrote:
> John Harrop wrote: > > > 1: Improvements to the ns macro, such as described in a previous thread. > > Particularly I'd like to see > > > > (:import package class class class) > > > > work. This fits with normal Clojure syntax. Right now it wants an extra > > pair of parentheses, does not accept a vector(!), and provides a very > > unhelpful error message. > > The extra pair of parens is so that you can do: > > (:import (package1 class class class) > (package2 class class)) > > Although perhaps you are suggesting doing this instead: > > (: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. > 2: IDE support. We need something like Eclipse's "organize imports" that > > works for Clojure code. You type (:import class class class) and hit > > control-magic, it figures out what packages for you, and prompts if > > there's any ambiguity, turning it into a bunch of (:import package class > > class) lines (as per 1 above) for each package. Substitute appropriate > > key for "magic". > > Well if you're using a scriptable editor you can just do something like > this: > > http://dishevelled.net/Generating-Clojure-import-lines-using-SLIME.html The problem with using a scriptable editor is that you need to be a Unix geek and part-owner of an acetylsalicylic acid factory to use one. :) -- 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