Kotlin completely indepedent of Java classes?


#1

Is it a goal of Kotlin to be be able to be used without importing anything from Java? For example, I needed a random number, and couldn't find anything in the Kotlin stdlibs (though I didn't look very hard), so I figured I have to import Java's Random class.

Is it the eventual goal of Kotlin that it should never be necessary to import from Java? Or will there always be certain standard Java classes that work well enough so that Kotlin does not provide such functionality?


#2

It is not a goal for Kotlin to replace standard Java classes for replacement's sake. Many JDK classes are good enough as they are.

On the other hand, we are working on a platform-independent core library that would work equally well on JVM and JS platforms.
When running on the JVM, much of this library simply wraps JDK classes