FUNCTIONAL functional reactive programming, state monads and all that, in Clojure
In my last post, I talked a bit about how FRP might look if state were maintained explicitly in persistent data structures, rather than in hidden mutable structures. The accompanying code was in Scala, but my first implementation was actually in Clojure. I was originally going to use the Clojure code in the post, but, having taken motivating example code from a Scala paper, it felt lazy to switch to Clojure just because I felt like it.
That said, it really was more fun to write in Clojure, and in some ways I think it is clearer. Additionally, it seems …
more ...