Nicolas Picon
04/10/2018, 12:19 PMPrefer 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 changedhttps://kotlinlang.org/docs/reference/coding-conventions.html#functions-vs-properties