>(e.g. the owner should be the only one to inc materials
etc)

What's so special about the inc function as opposed to any other
function?

>Also, ask-materials and send-products should
> be call immediately after a certain threshold. ask-materials  != dec,
> one decrements the other increments and the same for  send-products
> and inc.

My point is it seems like there should be one function that contains
some algorithm for how to modify the state of the ref, rather than
using inc and having more rules orthogonally injected via add-watch.

> Thanks for the dumping macro (I knew that macros eliminate code
> repetition but I didn't knew how to write one).

Note you could do something similar with a function, but using a macro
lets me print out the name of the ref.

-- 
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

Reply via email to