Does Kotlin have anything currently or in the work...
# announcements
n
Does Kotlin have anything currently or in the works along the lines of GroovyShell?
m
Do you mean running Kotlin scripts from the command line? If so,
.kts
files, run via
kotlinc -script
, offer that. If you mean "be able to run Kotlin scripts from within your program", Kotlin/JVM supports the JSR-223 APIs, both to run scripts and to have Kotlin itself run as a script. See https://kotlinexpertise.com/run-kotlin-scripts-from-kotlin-programs/ for some material on this. And, if neither of those are what you meant... could you explain a bit more about what you need? 😅
👍 1
🙂 2
j
Running
kotlinc
will also dump you into a
jshell
-like interactive session
n
The JSR-223 bit is what I was looking for! Thanks, that's awesome news.
r
@Nick Halase In that case, check out #scripting
n
Perfect. I didn't know that channel was a thing.
c
@Nick Halase Something like https://github.com/cbeust/kash maybe?
K 1
👍 2