On Nov 30, 2011, at 3:04 PM, David Nolen wrote: > (quote foo) should be interpreted as a literal match. I thought this was > addressed by a previous user submitted patch but it doesn't look like that's > true.
I wrote a patch that treated quoted keywords as literals so that ':when could be used to match a literal :when as opposed to introducing a guard. Sorry, I didn't think about the case of literal symbols. I assumed they already worked that way. Hmmm, maybe there's a difference between the :seq and vector matching. I will take a look tomorrow to see if I can come up with a patch. The complaint about reusing symbols is also my contribution. Maybe match bindings should be limited to symbols starting with an alphabetic character. I doubt anyone really wants to bind to symbols that look like operators. They could be treated as literals for the sake of matching. Any opinions on that? Steve Miner -- 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