I don't think any of the 5 clojure books out there, mentions that
data-structure literals should not be used to generate vectors/maps/sets
dynamically at runtime...personally I've been doing this a lot
especially with vectors and maps ! never even suspected that it was
wrong simply because i don't recall getting any weird behaviour and so I
assumed this worked with sets as well...
Jim
On 05/08/12 22:18, Phil Hagelberg wrote:
On Sat, Aug 4, 2012 at 11:45 PM, Mark Engelberg
<mark.engelb...@gmail.com> wrote:
My jaw is dropping here. I can't believe anyone would seriously propose
that the only things that go between [], {}, or #{} should be constants.
For what it's worth, vectors behave this way in Emacs Lisp.
I couldn't believe it either when I first discovered it; it basically
renders literal vector notation 90% useless. Vectors are essentially
ignored in all but the most performance-sensitive Emacs Lisp. It's
horrid.
-Phil
--
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