News for hackers. Stuff that matters.
Re:C# 9 Preview by dotnet2222 on Monday June 01, 2020 @05:00AM (#23376550)
Records are meant primarily for immutable cases such as DTOs. If you use them for mutable data, my guess is it uses some structure sharing to not duplicate all properties but instead hold pointers to the old unmutated properties. That's how a lot of immutable paradigms work but I don't know what C#9 does under the hood

There are no comments on this comment yet.