mifrai a écrit :
> Is there a way to put in type hints into macros?
>
> (defmacro hinted []
> (let [i (gensym "i")]
> `(let [#^Integer ~i 3]
> ~i)))
>
I don't know if there's a best way:
(defmacro hinted []
(let [i (with-meta (gensym "i") {:tag 'Integer})]
`(let [~i 3]
~i)))
Christophe