Thread
#feed
    rahulc29

    rahulc29

    11 months ago
    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 questions1. 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

    mcpiroman

    11 months ago
    may want to ask in #compiler
    rahulc29

    rahulc29

    11 months ago
    Thank you!
    gammax

    gammax

    11 months ago
    Hey @rahulc29, can I ask you to remove your message from #feed as you moved it to #compiler?