2014-07-09 5:11 GMT+02:00 Timothy Baldridge <tbaldri...@gmail.com>:

> Prefer vectors over quoted lists '(1 2) vs [1 2]. There's rarely a case
> (outside of macros) that you want the former.
>

​I did this mostly. The exception is:
(def nodes {
     :living-room   ['(You are in the living-room.)
                     '(A wizard is snoring loudly on the couch.)]
     :garden        ['(You are in a beautiful garden.)
                     '(There is a well in front of you.)]
     :attic         ['(You are in the attic.)
                     '(There is a giant welding torch in the corner.)]
     :dummy         ['(Only for testing purposes.)]
     })

Because this is only accessed sequential, I would think it would be more
efficient as a list then as a vector. (It is certainly less work to enter.)
Or would a vector be here more efficient also?

-- 
Cecil Westerhof

-- 
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/d/optout.

Reply via email to