> Hm it seems like what he did was a bit extreme. Would you do it that > way? In Clojure you could just use atoms and all would be well, right? > My game is going to be quite a bit more complex than Pac-Man, the game- > state is going to be way more complex.
His stated goal was to provide examples of non-trivial programs written in a pure functional manner. These kinds of examples are few and far between, and most examples people show either hand picked simple things (like beautiful lazy sort) or compilers. He's a game programmer so he used a non-trivial example from a domain he's intimately familiar with. If you read the rest of his blog (it's very good, btw) you'll notice he's quite the pragmatist, so I don't think his intention was to recommend writing games this way, but rather to get examples out there to encourage discussion of the pros and cons of pure functional programming. jack. -- 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