r/csharp • • Oct 12 '20

C#9 records: immutable classes

https://blog.ndepend.com/c9-records-immutable-classes/
119 Upvotes

89 comments sorted by

View all comments

Show parent comment

4

u/form_d_k Ṭakes things too var Oct 12 '20

Mutable structs are pretty rare – who wants a type with the potential for accidentally mutating a copy instead of the target?

Not in Unity's Entity Component System!! :\