Re: docs for ^:once

2013-09-12 Thread Jozef Wagner
There is also a recent discussion on IRC about that, http://clojure-log.n01se.net/date/2013-08-29.html#10:47 and official documentation mentions it at the end of http://clojure.org/lazy JW On Thu, Sep 12, 2013 at 8:56 PM, Brian Craft wrote: > I still don't really understand ^:once. Are there

Re: docs for ^:once

2013-09-12 Thread Brian Craft
Thanks. In my case, I started with code something like (defn load-exp [myseq] (kdb/transaction body)) where body has references to myseq. Christophe's patch of jdbc/transaction works. I can also work around it like (defn load-exp [& args] (apply (^:once fn [myseq] (kdb/transaction body))

Re: docs for ^:once

2013-09-12 Thread Christian Sperandio
You'll find a case of use of this term here: http://clj-me.cgrand.net/2013/09/11/macros-closures-and-unexpected-object-retention/ Le 12 sept. 2013 20:56, "Brian Craft" a écrit : > I still don't really understand ^:once. Are there docs anywhere? Is there > a way to inspect a function for this pro

Re: docs for ^:once

2013-09-12 Thread Brian Craft
Hm, I think I'm wrong about that workaround. On Thursday, September 12, 2013 12:10:44 PM UTC-7, Brian Craft wrote: > > Thanks. > > In my case, I started with code something like > > (defn load-exp [myseq] > (kdb/transaction body)) > > where body has references to myseq. Christophe's patch of jdb