Kotlin and Swift: only one step between.

Ivan Fytsyk
1 min readOct 21, 2018

--

Hi all. My name is Ivan Fytsyk. I’m a mobile developer from Kyiv, Ukraine.

Today I’m going to share some of my thoughts about mobile development with you. And the first part of it — my opinion about Kotlin and Swift programming languages. They both are quite young and recently gained their popularity. They both combine OOP with functional paradigms and they have a very similar syntax.

Fewer words, more code. Look at this sample and find at least 2 differences:

//Kotlin sample
fun makeTheWorldBetter() {
print("solve the problem of poverty")
print("learn how to treat cancer")
print("know Swift and Kotlin")
}
//Swift sample
func makeTheWorldBetter() {
print("solve the problem of poverty")
print("learn how to treat cancer")
print("know Swift and Kotlin")
}

See it? *fun/func* — the only difference in this sample. Of course, it’s just one example and it doesn’t show a full picture. And there are either a lot of unique features in both languages. What I want to say is how easy is switching from Kotlin to Swift and vice versa.

What does it mean for mobile developers? I think it means that knowing Kotlin and Android you could easily switch into Swift and iOS.

In the next stories, I’ll consider different parts of Swift, Kotlin, iOS, and Android: Classes, Functions, Asynchronous execution, Mobile Layouts, Widgets, View Controllers, Architecture and much more.

Thank you for reading.

--

--

Ivan Fytsyk