Hi all,
I'm currently working on a school project in c# and I've just got aware of the immutability concepts and advantages in c#.
The question is: what are the drawbacks of using it? I mean... every time you modify a string you create a new one, so if you have many strings to modify, there is lots of creation/deletion.. At which point the disadvantages surpass the advantages? Or, put in other words, when should I create immutable types and when should I not?
Thanks :)
PS: My example uses strings, but that's not about that type I'm worried (use stringbuilder if there's lots of manipulation to do), it's about another type I've created and that requires many manipulations over a lifetime.
Immutability drawbacks
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Kirtan PatelRank #292 · 8.6K reputationPosted Dec 11, 2009, 10:34 AM EST
http://macchiato.com/columns/Durable2.html
Kirtan PatelRank #292 · 8.6K reputationPosted Dec 11, 2009, 10:04 AM EST
just follow the article you will know Pros and Cons of Immutability
http://codebetter.com/blogs/patricksmacchia/archive/2008/01/13/immutable-types-understand-them-and-use-them.aspx
Alexandre5 reputationPosted Dec 11, 2009, 10:24 AM EST
I'm now more concerned about the cons.
Alexandre5 reputationPosted Dec 12, 2009, 3:45 PM EST
Thanks.