On Sat, Aug 4, 2012 at 10:52 PM, Mark Engelberg <mark.engelb...@gmail.com> wrote: > Yes, my first thought was, "I can just work around this by changing every > occurrence of something like #{a b} to (set [a b])."
I guess my thinking is a literal doesn't contain variables :) I'd have #{1 2 3} and #{:a :b :c} and #{'x 'y 'z} but I would never have thought of #{var-a var-b}... I'm trying to think whether I've even done that for regular maps or whether I've used the hash-map function or into {} to create maps from "variables"... > My second thought was, "Oh crap. I have to go through my entire codebase > now, and inspect every use of set literal notation This and your follow-up made me go back to my comment above and take a look at my code... I pretty much only use the literal notation for constants. I have just a couple of places where I use [ ] around expressions, and even then it tends to be just pairs. Everywhere else I already use vector - or vec - and where I have maps, the keys are constants and only the values are expressions. And while I was writing this, BG's post just came in which kinda fits with my thinking too... Definitely interesting to see another way of looking at those constructs tho'... -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ "Perfection is the enemy of the good." -- Gustave Flaubert, French realist novelist (1821-1880) -- 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