Join Slack
Powered by
Does it (::update) produce new lambda on each invo...
# 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
4
Views
Open in Slack
Previous
Next