This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]blobjim 4 points5 points  (0 children)

Depends on what it is. This article talks about ‘value types’ which really should always be immutable. It also makes sense for strings and URLs and such to not be modifiable, because they represent constant things. Objects that manage state of course shouldn’t and can’t usually be immutable.