Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on JavaScript for People Who Hate JavaScript. Parent comment
You can declare a `dynamic` Kotlin variable like this:
val myObject: dynamic = null
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.
You can declare a `dynamic` Kotlin variable like this:
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.)