Hi all, in our lessons we often use Kotlin playgro...
# education
p
Hi all, in our lessons we often use Kotlin playground for sharing short examples. Does anyone know how to use kotlinx.datetime in the Kotlin playground? This is what I tried: https://pl.kotl.in/l5doGvsdC (I can use java.time.* but we want to demonstrate kotlinx.datetime)
a
Playground does not have means to add new libraries. I recommend to use DataLore instead. There you can use
use
directive and load any maven dependencies. You can also share a notebook and allow people to join you via link.
thank you color 1
👍 1
p
Thanks for your tip! I will take a look at DataLore. I noticed that kotlinx.coroutines is supported in Kotlin playground. That is why I expected to be able to use other kotlinx libraries. Do you think Kotlin playground will support more kotlinx libraries in the near future?
a
Kotlnx libraries upgrade versions in irregular pace. I do not think it is possible to keep the playground up-to-date. And it does not make a lot of sense.