Re: What is a "state monad binding plan" (referring to code in core.async)

2013-07-26 Thread john
yes your explanations help me a lot! thank you for replying so quickly! I will try to work myself through your code as you suggest. Many thanks! Am Freitag, 26. Juli 2013 16:51:54 UTC+2 schrieb john: > > Hi, > I am trying to understand the code in > ioc_macros.clj

Re: What is a "state monad binding plan" (referring to code in core.async)

2013-07-26 Thread Timothy Baldridge
Well, I wrote the code, so I suppose I should comment on it a bit. The ioc_macros use a very loosely defined version of the state-monad. I don't know if the functions/macros follow all the monad laws, and I really don't care, but here's the problem: I needed to be able to track some state while pa

What is a "state monad binding plan" (referring to code in core.async)

2013-07-26 Thread john
Hi, I am trying to understand the code in ioc_macros.clj . I stumbled on the macro gen-plan which doc reads "Allows a user to define a state monad binding plan" I am wondering what makes th