Welcome! Please see the About page for a little more info on how this works.

0 votes
in Clojure by
Repro:

user=> (def x (atom 1))
#'user/x
user=> ^{:foo (swap! x inc)} {:bar (swap! x inc)}
{:bar 2}
user=> (meta *1)
{:foo 3}

Presumably this is because ^:foo x expands to (with-meta x {:foo true}) but probably should have reversed argument order or use a let expression.

1 Answer

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJ-1017 (reported by bbloom)
...