Hi, The duplicate computation in "commute" seems to me quite a blemish on clojure's beauty. I even see somebody's code with comments "pre- compute x because otherwise commute will call it twice". So I need to keep that fact in the back of my mind when using it? That is not what I was hoping for.
I found this post where somebody else seems to be bothered enough to raise the same question: http://groups.google.com/group/clojure/browse_thread/thread/8b4560096018cd1f/bb2f9b05930a12de?lnk=gst&q=commute%2C+twice#bb2f9b05930a12de Can we do the computation twice *only* when at the commit time the ref was actually changed in another thread? Thanks. -- 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 Note that posts from new members are moderated - please be patient with your first post. 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