Y
Hacker News
new
|
ask
|
show
|
jobs
by
pdpi
3146 days ago
You have to write your Kotlin anticipating it'll be called from Java though (e.g. by using SAM interfaces instead of function types for your arguments)
2 comments
edem
3145 days ago
This does not mean that it is a one-way interop. When you write it the right way, it will work from Java.
link
lmm
3146 days ago
Is Kotlin's function not an SAM interface? I'm pretty sure Scala's is.
link