O'Reilly logo
  • MICHAEL MASLENKO thinks this is interesting:

Note that there’s no this in a lambda as there is in an anonymous object: there’s no way to refer to the anonymous class instance into which the lambda is converted. From the compiler’s point of view, the lambda is a block of code, not an object, and you can’t refer to it as an object. The this reference in a lambda refers to a surrounding class


Cover of Kotlin in Action


5 Fact