digitalmars.D - More immutable data structures
- bearophile (7/7) Aug 26 2008 As soon as D users will want to write more multithreaded code in D 2.x, ...
As soon as D users will want to write more multithreaded code in D 2.x, using the guarantees given by transitive const to use immutable data structures, D will probably need more immutable data structures in a standard lib, Phobos or Tango2. The following blog post (where persistent means immutable) shows that Scala programmers are rather more up to date about such things: http://www.codecommit.com/blog/scala/implementing-persistent-vectors-in-scala In C# too: http://code.google.com/p/functional-dotnet/ Hopefully it's not too much late for D to come over the immutability train :-) Bye, bearophile
Aug 26 2008