I’m trying to find it, because now I’ve stumbled u...
# codingconventions
a
I’m trying to find it, because now I’ve stumbled upon this
The most common kind of properties simply reads from (and maybe writes to) a backing field. On the other hand, with custom getters and setters one can implement any behaviour of a property. Somewhere in between, there are certain common patterns of how a property may work. A few examples: lazy values, reading from a map by a given key, accessing a database, notifying listener on access, etc.
https://kotlinlang.org/docs/reference/properties.html
And accessing a database doesn’t seem like a thing that would return the same value, or work in constant time.