I don't know if it's more common or not, but I tend to use (:key map) most of the time, because it's a visual cue that I'm getting some key from a map. Whenever you see (:key something), you know that you're getting the :key field from something. When you see (something :key), you have to be more aware of the context to know whether something is a map or some other function.
On Mon, May 17, 2010 at 10:48 AM, Michael Gardner <gardne...@gmail.com>wrote: > It appears the (:key map) style is more common than (map :key) among > Clojurians. Is this true? > > So far I'm doing (map :key) because it's more familiar, and because it > doesn't make me change styles when using something besides keywords as keys > (admittedly rare so far). But I'd like to hear other views before I get too > set in my ways. Which style do you use, and why? > > -- > 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<clojure%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- 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