Re:Unexpected inconsistency in records – Jon Skeet's coding ...
by bee_rider on Tuesday July 22, 2025 @11:19AM
(#44648150)
Did you go through the same journey as the author of the article, in compressed form? Further evidence it is a confusing feature, if so!
Re:Unexpected inconsistency in records – Jon Skeet's coding ...
by firesteelrain on Tuesday July 22, 2025 @11:52AM
(#44648746)
Yes! It didn’t make sense at first. It’s not intuitive unless you understand the internals on how it works and then it makes sense. I don’t think there is anything wrong just needs to be documented better
Shouldn't SomeCalculatedValue be "This is another some value *calculated*" when using with ?
Edit: Actually that is the problem, that it isn't "recalculating" due to the way that the initialization of read-only properties works in a C# record.