According to the kotlin code convention: > Pref...
# announcements
n
According to the kotlin code convention:
Prefer a property over a function when the underlying algorithm:
- does not throw
- is cheap to calculate (or caсhed on the first run)
- returns the same result over invocations if the object state hasn’t changed
https://kotlinlang.org/docs/reference/coding-conventions.html#functions-vs-properties