Re: [im]mutability, threads, state and idiom

2010-01-17 Thread Timothy Pratley
2010/1/16 Simon Brooke : > general case of a cyclic directed graph. Surely there must be some > clean idiomatic way of creating a cyclic graph? I experimented with something very similar when I first encountered Clojure: http://clojure.googlegroups.com/web/funmud.clj And ended up representing the

[im]mutability, threads, state and idiom

2010-01-15 Thread Simon Brooke
Right, I'm trying to get my head around the consequences of immutability for the sort of programming practices I'm used to, and how I change the way I do things to fit in with it. Initially I thought 'well, immutability just means you can't use rplaca and rplacd, and I've very rarely used either so