On Fri, Oct 14, 2011 at 7:58 AM, pistacchio <pistacc...@gmail.com> wrote: > I'm implementing a litte "game" thing in Clojure. So far I'm passing > around a "world status" object among functions. It is very > "functional" and I can simulate any moment of the game my simply > feeding the system with a made-up world state.
Well you're going to get a slight performance boost by going to a controlled mutable state as you won't have to modify your entire state tree whenever any object changes, you'll only have to modify the part that changes. But what I see as the biggest benefit to using mutable state, is being able multi-thread your program. Running everything on one thread is soooo 20th century. ;-) Timothy -- 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