On Jan 6, 2013, at 10:48 AM, Ambrose Bonnaire-Sergeant wrote: > On a related note, combining a quoted symbol and a named wildcard pattern > seems to be buggy. > > clojure.core.match=> (match 'my-sym a a) > #<CompilerException java.lang.RuntimeException: Unable to resolve symbol: > ocr-3612 in this context, compiling:(REPL:79)> > clojure.core.match=> (macroexpand-1 '(match 'my-sym a a)) > (clojure.core/let [a ocr-3620] a)
Yeah, I've hit that, but presumed I was just doing something wrong. :-) > I included a section on how symbols work as patterns. Perfect, reads very well. I'm glad I didn't just add something, it would not have been as clear or succinct. > Interestingly, the old design page still has some good stuff, including an > explanation of this particular issue. > I'm not sure how much is still relevant. > > https://github.com/clojure/core.match/wiki/Design-Wiki Ach, I hadn't thought to look at what else might be lurking in the wiki! The 'Local Bindings' section on the design page would have made it all obvious. Thanks! - Chas -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
