theapache6403/13/2022, 11:40 AM
I’ve seen most of the
before invoking a lambda. For eg,
modifier calls on
lambda. Does that mean we should wrap all lambda with
before invoking ? 🤔 If that’s the case, why can’t compiler do it for us? #possibly_a_stupid_question
Albert Chang03/13/2022, 11:47 AM
theapache6403/13/2022, 11:59 AM
. But what am asking is, basically we use
to get the latest value (or to avoid stale value). Is there a scenario where we need to access the stale value? 🤔
Albert Chang03/13/2022, 12:04 PM
theapache6403/13/2022, 12:09 PM
etc. So lambas without
should be very rare?
Albert Chang03/13/2022, 12:15 PM
theapache6403/13/2022, 12:34 PM
if and only if am accessing a lambda in an area where recomposition can’t be reached. For example,
, etc.. is that what you’re saying ?
Albert Chang03/13/2022, 12:35 PM
, it's better to just use it as a key.
theapache6403/13/2022, 12:37 PM
Albert Chang03/13/2022, 12:43 PM
is designed that way.
theapache6403/13/2022, 12:44 PM