rahulc29
09/28/2021, 1:48 PMinvokedynamic
and Java's compilation strategy for lambdas. As far as I'm aware, Kotlin only supports the Java-like compilation strategy for Single Abstract Method (functional) Interfaces, not for plain Kotlin lambdas. According to the what's new this is still experimental for plain Kotlin lambdas. I have a few questions
1. Why are Kotlin lambdas not implemented as SAM interfaces? Is this to allow for reflection?
2. Why do SAM interfaces not have to worry about serializability the way Kotlin lambdas do?
I would really appreciate some input regarding this.
Thanks.mcpiroman
09/28/2021, 1:57 PMrahulc29
09/28/2021, 2:19 PMgammax
09/29/2021, 12:14 PM