https://twitter.com/kotlin/status/1308337862920810496
Prefer a read-only property over a function with no arguments when it
🧨 does not throw
🧮 is cheap to calculate / cached on the first run
♻️ returns the same result over invocations if the object state hasn’t changed
Find more in the style guide: https://t.co/quZWCdT3CV
Twitter