I just found out http://play.kotlinlang.org/
It remembers me the Xcode playground. i'm wondering is there anything like Xcode Playgrounds to intelliJ wih kotlin ?
:kotlin: 1
s
Shawn
02/21/2019, 6:36 PM
like, self-evaluating script sort of deals?
the closest thing IJ really has are kotlin scratch files, which you can run kind of like Scala worksheets
i.e. you can evaluate the file and have the results printed out inline next to your expressions
a
amadeu01
02/21/2019, 6:39 PM
Like, I use playground on Xcode to even play with UI Views. It looks like jupyter notebooks
it is more than just self-evaluating
l
louiscad
02/21/2019, 8:06 PM
There's also Kotlin REPL (when you run
kotlinc
from CLI without arguments), though it doesn't save anything.
g
gildor
02/22/2019, 6:29 AM
“even play with UI Views” you have access to anything what is available in your classpath with scratch files
For example you can use it to play with JavaFx, but not for Android, which has own runtime and cannot be run on your descktop