Fork me on GitHub
#clojure-dev
<
2022-11-08
>
niwinz13:11:28

Just a curiosity, I have seen in clojure source the ^:once metadata many times, what is real purpose of it?

Alex Miller (Clojure team)13:11:16

It’s a hint to the compiler that this object will be used once and then the reference can be cleared

ghadi13:11:24

(the object being the fn, and the references being the things that the fn closes over)

niwinz13:11:11

aha, understand, thanks!