News for hackers. Stuff that matters.
Re:C# 11 Preview Updates – Raw string literals, UTF-8 and more by codeflo on Sunday May 22, 2022 @07:40AM (#31467054)
I’d be fine with semantics similar to readonly fields (and incidentally, “const” in JavaScript): you can’t reassign the variable, but the contained object can do what it wants.

To your last question: Yes, records are really nice syntactic sugar for classes that want to behave like values.

There are no comments on this comment yet.