https://kotlinlang.org logo
Title
k

karelpeeters

05/27/2018, 8:46 PM
Turns out someone wrote a blog post about this exact issue: https://galex.co.il/2017/11/04/Dont_Use_lambads_as_listeners_in_Kotlin.html
c

Czar

05/27/2018, 9:22 PM
Got me scared there for a moment, then saw the Post Scriptum update and phew, we actually use that lambda interface implementation (adapter lambda) instead of naked lambdas in such instances as team policy, so our code is safe 🙂 For those who missed the Post Scriptum: https://galex.co.il/2017/11/07/Dont_Use_lambdas_as_listeners_in_Kotlin_Update.html
k

karelpeeters

05/27/2018, 9:41 PM
Ah forgot about those as well, thanks for mentioning it!