On Thu, Mar 5, 2009 at 8:53 PM, Jason Wolfe <jawo...@berkeley.edu> wrote: > >> The mutation constructing function seems obvious in hindsight. I feel >> stupid now. > > You shouldn't :). Immutability definitely takes some getting used to; > I know it's taking me quite some time to wrap my head around it.
I'm actually porting a program I wrote in Python that has immutability all over it. I make sure that all mutation methods return new individuals or genes that way different individuals can share genes without fearing they might be modified and different population can share individuals. Much cheaper than making deep copies of everything. --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---