Join Slack
Does it (::update) produce new lambda on each invocation like in Java or it's cached somewhere?
# getting-started
a
alex
11/18/2018, 11:21 AM
Does it (::update) produce new lambda on each invocation like in Java or it's cached somewhere?
e
elizarov
11/18/2018, 11:23 AM
Just like in Java. This one is capturing (captures
this
), so it is not cached. Non-capturing ones are cached.
i
ilya.gorbunov
11/18/2018, 10:42 PM
When used in
also
or other inline functions, callable references are inlined and don't produce lambda at all.
👍 1
3
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by