On 13 Jul., 12:03, Meikel Brandmeyer wrote:
> I'm not sure, though, why the metadata gets moved to the function on
> redefinition.
Does anyone know why this is so?
> (defn foo [x] x)
> (defn foo [x y] (+ x y))
> (:arglists (meta (var foo))) ==> ([x y])
> (:arglists (meta foo)) ==> ([x])
Thanks
Hi,
On Jul 13, 11:52 am, Mike Mazur wrote:
> I asked in the IRC channel about metadata on functions[1], and was
> told that it's indeed possible in 1.2. I tried this at the REPL and
> saw the following behavior (which looks like a bug):
>
> user=> (defn ^{:foo "v1.0"} mfoo "mfoo docstring" []
Hi,
I asked in the IRC channel about metadata on functions[1], and was
told that it's indeed possible in 1.2. I tried this at the REPL and
saw the following behavior (which looks like a bug):
user=> (defn ^{:foo "v1.0"} mfoo "mfoo docstring" [] (println "foo v1.0"))
#'user/mfoo
user=> (meta