Also, in Swift: ``` var list1 = [1, 2] //mutable l...
# language-proposals
v
Also, in Swift:
Copy code
var list1 = [1, 2] //mutable
let list2 = [3, 4]  // immutable list
This is the difference between JVM's reference semantic and Swift's struct/class semantics. It is a fundamental difference in the platforms.
b
I can imagine one day, Kotlin automatically translating
Copy code
var list = [1, 2]
into
Copy code
var list = mutableListOf(1, 2)