More immutable data structures

bearophile bearophileHUGS at lycos.com
Tue Aug 26 18:56:02 PDT 2008


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



More information about the Digitalmars-d mailing list