News for hackers. Stuff that matters.
Re:JavaScript for People Who Hate JavaScript by winter_blue on Wednesday August 09, 2017 @01:12PM (#14971354)
Actually, the Kotlin equivalent to TS' any is 'dynamic': https://kotlinlang.org/docs/tutorials/javascript/working-wit...

You can declare a `dynamic` Kotlin variable like this:

   val myObject: dynamic = null
The myObject above is not type-safe. It seems that the reason for its existence is interop with existing JavaScript code.

The Kotlin `Any` class is actaully more related to Java's `Object` class. (It's the superclass of every Kotlin class.)

There are no comments on this comment yet.