warning on mutation

2009-03-04 Thread Joshua Fox
Can Clojure generate warnings when a function has side effects, particularly in transactions and other places where one should avoid them? Perhaps just a warning on access to any objects other than those of Clojure types and pre-approved immutable Java types (String, Number, etc.)? Joshua

Re: warning on mutation

2009-03-04 Thread Jeffrey Straszheim
Not exactly, but there is the IO! macro (see core.clj) that you can use to mark your side effect generating code. On Wed, Mar 4, 2009 at 10:49 AM, Joshua Fox joshuat...@gmail.com wrote: Can Clojure generate warnings when a function has side effects, particularly in transactions and other