In Kotlin, extension properties are evaluated lazi...
# getting-started
k
In Kotlin, extension properties are evaluated lazily? (edited)
j
Rather, every time they are called. They are computed properties. If you want them lazy (computes the first time and then cached) you have to use
by lazy {}
🤯 1
d
I don't think you can mix delegates and extensions like that though.
j
There is a playground link demonstrating it working, though. What do you mean?
d
Huh. You’re right. I don’t know why I thought that. Oh, I might have been confusing it with value class delegations
k
Thanks @Joffrey 🚀 🚀