3 ms·
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 reall
by harpiaharpyja 1y ago
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.