>From the in progress Clojure library standards[1] page:

* Use keyword-first syntax to access properties on objects:

(:property object-like-map)

* Use collection-first syntax to extract values from a collection (or
use get if the collection might be nil).

(collection-like-map key) (get collection-like-map key)

Sean

[1] https://www.assembla.com/wiki/show/clojure/Clojure_Library_Coding_Standards

On May 17, 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
> For more options, visit this group 
> athttp://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

Reply via email to