On Jan 2, 11:07 am, "Mark Volkmann" <[email protected]> wrote: > The most controversial thing about this code is probably my use of def > to change the state of the snake and the apple. It's not yet clear to > me that using atoms is needed here, but I need to think about that > more.
Not atoms, refs. Or agents for that matter -- the snake can be naturally modeled as an agent, because it responds to events coming from different sources: * the movement update * user input * encountering objects mfh --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---
