Re: Dynamic enforcement of no side effects in transactions?

2009-08-19 Thread Meikel Brandmeyer
Hi, I'd like to add 3) Use `io!` in your side-effecting functions. Since we should try to minimise side-effects to dedicated functions and keep the rest of our program clean. So in ClojureQL we have a `with-connection` macro, which expands to something like (io! "Database interaction cannot ha

Dynamic enforcement of no side effects in transactions?

2009-08-19 Thread Andy Fingerhut
During the Clojure for Lispers talk in Boston (see clojure.blip.tv if you want to watch it), someone asked Rich about enforcing the no-side- effect rule in transactions. Rich answered that he couldn't do that, because "I'm a dynamic language." (audience got a chuckle out of that way of putting i