Do you think the fact that bounded property refere...
# announcements
m
Do you think the fact that bounded property reference is not lazy is an error? For me it should be, and
lazy { a.makeB() }
should be the same as
lazy(a::makeB)
https://blog.kotlin-academy.com/method-references-and-lambdas-in-lazy-properties-371dbbea857b
🚫 2
👍 1
a
it seems like adding a special case where if the LHS of :: finishes by reading a delegated property, then the property reference is more complicated as it will embed calling the delegate each time.
i
Such property reference is called "bound" because it binds to the receiver object when the reference is created. This requires evaluating the receiver expression, in this case — calling the lazy initializer.
m
Well, it does not need to, but I see your point