Swift vs Kotlin — The differences that matter

Animesh Mishra
4 min readMay 6, 2018

Swift and Kotlin are two great languages for iOS and Android development respectively. They both have very modern features and syntax that can help enormously to build native apps.

Swift

Swift Enums are more powerful.

Swift has no data class.

Swift does not have delegated classes or delegated properties.

Swift does not allow annotations.

Kotlin

Kotlin classes are final by default.

Kotlin has no struct or passing data by value.

Kotlin has no tuples.

Kotlin has no typealias.

Kotlin has no guard statement.

Swift — — — — — — — Syntax Difference- — — — —Kotlin

func — — — — — — — — — — — — — — — — — — — — fun

let — — — — — — — — — — — — — — — — — — — — —val

nil — — — — — — — — — — — — — — — — — — — — — null

protocol — — — — — — — — — — — — — — — — — —-trait

init — — — — — — — — — — — — — — — —…

--

--