Hey guys, I've been researching on `invokedynamic`...
# compiler
r
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
See the issue linked from what's new, https://youtrack.jetbrains.com/issue/KT-45375