reflection warning with threading macro

2013-10-15 Thread Brian Craft
This gives me a reflection warning: (.write out ^String (- slist meta :hex)) This does not: (.write out ^String (:hex (meta slist))) = (clojure.walk/macroexpand-all '(- slist meta :hex)) (:hex (meta slist)) What's going on? Is there some other way to type hint the case with the threading

Re: reflection warning with threading macro

2013-10-15 Thread Sean Corfield
My guess would be the ^String is attached to the following expression in both cases but the macro-expansion process loses that metadata... On Tue, Oct 15, 2013 at 10:51 AM, Brian Craft craft.br...@gmail.com wrote: This gives me a reflection warning: (.write out ^String (- slist meta :hex))

Re: reflection warning with threading macro

2013-10-15 Thread Marshall Bockrath-Vandegrift
Brian Craft craft.br...@gmail.com writes: What's going on? Is there some other way to type hint the case with the threading macro? I’m pretty sure this is CLJ-865 “Macroexpansion discards form metadata”: http://dev.clojure.org/jira/browse/CLJ-865 In which case you’ll need to use an