On Jan 25, 5:40 pm, "Steven E. Harris" <s...@panix.com> wrote:
> Justin Kramer <jkkra...@gmail.com> writes:
> > You may find this ns cheatsheet helpful:
>
> >http://gist.github.com/284277
>
> That is most helpful.
>
> What's not helpful is the weird mix of lists and vectors used by these
> forms. When I finally made it to :rename accepting a map, I had to take
> a break.
>
> --
> Steven E. Harris

Which is why I stopped using parens altogether for the ns stuff. E.g.,
the cheatsheet using vectors:

(ns foo.bar
  [:require clojure.contrib.math]
  [:require [clojure.contrib math]]
  [:require [clojure.contrib [math :as math]]]
  [:require [clojure.contrib seq-utils [math :as math]]]
  [:use [clojure.contrib math seq-utils]]
  [:use [clojure.contrib [math :only [sqrt]]
                          [seq-utils :only [flatten]]]]
  [:use [clojure.contrib.math :exclude [sqrt]]]
  [:use [clojure.contrib.math :rename {sqrt ccm-sqrt}]]
  [:import [java.util ArrayList HashMap]]
  [:refer-clojure :exclude [print]]
  [:refer-clojure :only [print]]
  [:refer-clojure :rename {print core-print}])

Thus the only time you need to use a non-vector is the map for rename,
which makes sense to me.

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