Monthly Archives: November 2010

In Defense of the Mutable Struct

There’s a school of thought that tells us that all structs (i.e. value types) should be immutable. Immutable structs let us pretend that values and objects are the same thing. Ultimately, this is a discussion about what we want our code to look like. I’m not opposed to the idea of immutable structs, but this doesn’t need to be a hard-and-fast rule.