Also, :keyword is a function, whereas the object you're passing to it may not be a array-map or hash-map (both functions), but a record or other type implementing the map interface.
--- Joseph Smith j...@uwcreations.com @solussd On Jan 28, 2013, at 8:09 PM, James Xu <xumingming64398...@gmail.com> wrote: > (:Keyword map) is preferred, because keyword itself can never be nil, while > it's possible for map, you might be interested to have a look at: > https://github.com/bbatsov/clojure-style-guide > > From: Jonathon McKitrick <jmckitr...@gmail.com> > Reply-To: <clojure@googlegroups.com> > Date: Mon, 28 Jan 2013 18:00:01 -0800 (PST) > To: <clojure@googlegroups.com> > Subject: Best practice - (:keyword map) versus (map :keyword) > > Either one works, is there any kind of guideline on which to prefer, when? > Or is it entirely personal preference? It seems each way could be more > readable in different circumstances.... > -- > -- > 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 > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- > -- > 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 > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > -- -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.