CSharp7Features icon indicating copy to clipboard operation
CSharp7Features copied to clipboard

Tuples should not be described as immutable

Open jedr opened this issue 9 years ago • 1 comments

Tuples are actually mutable.

As detailed here: https://docs.microsoft.com/en-us/dotnet/articles/csharp/tuples

All the ValueTuple types are mutable structs. Each member field is a public field. That makes them very lightweight. However, that means tuples should not be used where immutability is important.

jedr avatar Mar 01 '17 18:03 jedr

Thank you! I will add his info as soon as possible!

alugili avatar Mar 01 '17 19:03 alugili