Slide 24
Slide 24 text
Functions vs Properties
Prefer a property one a function when the underlying
algorithm
• does not throw
• is cheap to calculate
• returns the same result over innovations if the object state
hasn’t changed
https://kotlinlang.org/docs/reference/coding-conventions.html#functions-vs-properties