On Mon, May 11, 2009 at 09:13, Mark Engelberg <mark.engelb...@gmail.com> wrote: > > I'm curious, wouldn't it be possible for every ref-set to be > implicitly wrapped in a dosync? That way, you wouldn't have to > explictly wrap ref-set in a dosync for the times where you just want > to change one ref. You'd only need to explicitly call dosync when you > need to wrap more than one ref-set in a transaction.
Magical implicit mixing of these two concepts seems like kind of a hack. How about writing a dosync-ref-set macro and using that if you find yourself often doing transaction that consist of only a single ref-set call. // ben --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---