Re: clojure.spec for specifying sequences of states over time

2016-08-06 Thread Timothy Baldridge
A few thoughts on your design and a possible solution to your problem. Firstly if we are concerned about the correct ordering of values over time, then it sounds like we are dealing with something that contains hidden mutable state. That hidden state is a can be problematic. In general, when workin

Re: clojure.spec for specifying sequences of states over time

2016-08-05 Thread Alex Miller
There are a variety of possible extensions to what is currently offered by spec wrt regex derivatives but that's up to Rich. On Friday, August 5, 2016 at 12:37:15 PM UTC-5, Russell Mull wrote: > > Suppose you have a reactive process, something that receives a message, > processes it, updates it

clojure.spec for specifying sequences of states over time

2016-08-05 Thread Russell Mull
Suppose you have a reactive process, something that receives a message, processes it, updates its, state, and repeats. For example: (go-loop [s :initial] (case ( :processsing :processing ->: :processing :processing -> :stopping :stopping -> (done) This is pretty easy to write as a regular expre