(e non solo)
==
?
==
++
val str: String = "Hello Kotlin"
val nullableStr: String? = null
str.length // 12
nullableStr?.length // null
nullableStr?.length ?: 0 // 0
val str = "Hello world"
str = "Goodbye world" // Compiler error!
var mutableStr = "Hello world"
mutableStr = "Goodbye world" // Ok
val list: List<String> = listOf()
list.add("Foo") // Compiler error!
val mutableList: MutableList<String> = mutableListOf()
mutableList.add("Bar") // Ok