4 ms·
First and foremost, simplicity. The code is shorter and more manageable. I don't know if functional program is SIMPLE as much as it is CONCISE. I didn't see t
by automatwon 10y ago
First and foremost, simplicity. The code is shorter and more manageable.
I don't know if functional program is SIMPLE as much as it is CONCISE.
I didn't see the word monad, fold, or reduce anywhere in the article. Is a functional programming language used with side effects and all? There's no acknowledgment of scenarios where managing the state the functional way can be unnatural, and require an intellectual hop. Or, alternatively, that this game in particular lends itself more naturally to the functional paradigm.
- dkersten 10y agoClojure generally doesn't use monads and has its own way of dealing with mutable state. Clojure doesn't prevent side-effects, but it does make them somewhat unidiomatic in most cases. In any case, Clojure makes it pretty easy to write pure-functional code and carefully manage the mutable state and side-effects that you have. Having said that, I don't know anything about Arcadia and how the Clojure code interacts with Unity and how clean the paradigm separation is...