Hi all, I have a question :wink: In Kotlin, when ...
# announcements
s
Hi all, I have a question 😉 In Kotlin, when I create an anonymous instance of an interface with just one method (typically a callback) which is declared in Java code, I can write
{ result -> … }
. However once the interface has been converted to Kotlin I have to write
object : MyCallback { override fun onResult(result: String) { … } }
. Why is that so and is there any way to keep the concise lambda syntax?