Typical Kotlin (Kotlin Budapest User Group meetup - September)
The talk covers some of the basic built-in types of Kotlin (Any, Unit, Nothing), and how we interact with these types - whether we know it or not - when using basic constructs (the Elvis operator, return statements, null itself) of the language.
Any The root of the hierarchy public open class Any { public open operator fun equals(other: Any?): Boolean public open fun hashCode(): Int public open fun toString(): String }
Nothing A value that never exists fun loopy(): Nothing { while (true) { println("Loop!") } } fun exceptional(): Nothing { throw IllegalStateException() }