Skip to content

Tuples should not be described as immutable #1

@jedr

Description

@jedr

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.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions