Dynamic evaluation of Kotlin?


#1

A friend of mine and I are developing alternate implementions of a system. He's using Groovy and I'm using Kotlin.

He showed me an example of his where is does an Eval - evaluation - of some Groovy and it returns a closure. Is it possible to do something similar in Kotlin?

Thank you – Randy


#2

Short answer is no. Kotlin, being a static language does not allow dynamic code evaluation at the moment. May be supported later (may be not)