https://kotlinlang.org logo
#compiler
Title
# compiler
r

rahulc29

09/28/2021, 2:19 PM
Hey guys, I've been researching on
invokedynamic
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 aren't 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. Thread in Slack Conversation
e

ephemient

09/28/2021, 3:59 PM
See the issue linked from what's new, https://youtrack.jetbrains.com/issue/KT-45375
2 Views