2011/9/5 Mark Rathwell <mark.rathw...@gmail.com> > >> Huh, interesting. I assumed ^:foo meta syntax was new to 1.3, and > >> wouldn't compile at all in 1.2. But now I see that in 1.2 it's > >> equivalent to ^{:tag :foo} - not useful, but not damaging either. I > >> guess I'll start using ^:dynamic myself. > > > > Actually, it causes compiler errors, when the compiler tries to use the > > keyword as a typehint. Unfortunately, this occurs in a pseudo-randomly > when > > compiling code that uses the "hinted" var and leads to really cryptic > error > > messages. > >> java.lang.RuntimeException: java.lang.IllegalArgumentException: Unable > to > >> resolve classname: :dynamic > > Sorry, trying to clarify, we're saying don't use ^:dynamic if you want > to be compatible with 1.2? Instead use the full form ^{:dynamic > true}? >
Yes. More generally : not using ^:anything in your code is a necessary condition for your code to be compatible with 1.2 (maybe not sufficient, I do not remember all the potential incompatibilities) > > Thanks. > > -- > 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 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