DEV Community

Discussion on: Kotlin vs. Swift: Are Android and iOS moving towards creating a universal language?

Collapse
 
badepaz profile image
badepaz

I enjoyed reading the article. When Kotlin was announced as being supported in Android Development, I was curious about the similarities to Swift as I'm an iOS / macOS developer. So this article helped give me a basis for comparison. Thanks.

A couple of notes.

First: (it should be noted that while Swift appeared in 2013, Kotlin originated back in 2011) - Swift was first revealed on June 2nd 2014, during the 2014 WWDC keynote.

Second: (In Swift these are blocks or closures, the terms from Objective-C.) - "Blocks" are from Objective-C and "Closures" are from Swift. While they both serve the same purpose (anonymous functions) they capture variables a little differently. So the TERM "Closures" doesn't come from Objective-C, it was started in Swift.