Introduction to the Kotlin Type System
Explore the intricacies of the Kotlin type system and understand how it enhances safety and convenience in programming.
We'll cover the following
Introduction
The Kotlin type system is amazingly designed. Many features that look like special cases are just a natural consequence of how the type system is designed. For instance, thanks to the type system, in the example below:
The type of
surname
isString
.The type of
age
isInt
.We can use
return
andthrow
on the right side of the Elvis operator.
Get hands-on with 1400+ tech skills courses.