Follow

- Swift uses let/var for read-only/settable properties, while Kotlin uses val/var
- Swift has willSet/didSet, while Kotlin has “set”. Use “field” to assign the stored value
- Read-only computed properties are “vars” in Swift, but “vals” in Kotlin
- Minor syntax differences

On the surface, variable declarations are quite similar! But in the future we'll dive into more advanced cases

· · Web · 0 · 0 · 0