Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tuples should not be described as immutable #1

Open
jedr opened this issue Mar 1, 2017 · 1 comment
Open

Tuples should not be described as immutable #1

jedr opened this issue Mar 1, 2017 · 1 comment
Assignees
Milestone

Comments

@jedr
Copy link

jedr commented Mar 1, 2017

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.

@alugili
Copy link
Owner

alugili commented Mar 1, 2017

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

@alugili alugili self-assigned this Mar 8, 2017
@alugili alugili added this to the Revision 1 milestone Mar 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants