I'm trying to get clarification on this post by <@...
# android
r
I'm trying to get clarification on this post by @mikehearn https://discuss.kotlinlang.org/t/lambdas-and-implicit-references-to-the-instance-of-the-enclosing-class/2288/4 Specifically this line:
If the lambda captures then a new object is created each time the lambda is used.
Does this mean that if my lambda accesses any member variables or methods declared in its parent class, it becomes an instance of an anonymous class like in Java? If so, do I need to be wary of memory leaks when using lambdas, particularly in views and activities?