Re:Unexpected inconsistency in records – Jon Skeet's coding ...
by harpiaharpyja on Tuesday July 22, 2025 @02:35PM
(#44651252)
Ehh, I think the real footgun here is using a property with backing storage to store what is clearly a derived value. Using a computed property is what we really should be doing here, if we think our code should line up with our intentions.
I feel like what's happened here is that the author actually needed a system to cache their derived values, but didn't think to build that out explicitly.
I feel like what's happened here is that the author actually needed a system to cache their derived values, but didn't think to build that out explicitly.