DEV Community

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

Collapse
 
dimpiax profile image
Dmytro Pylypenko

Kotlin is pathetic parody to Swift. Also Kotlin's syntax sugar is under doubt.

Related to article: Any in Kotlin is a base class?
Swift has Any datatype for func / protocol / enum etc. What Kotlin does have accordingly?

Collapse
 
Sloan, the sloth mascot
Comment deleted
Collapse
 
aaronbond profile image
Aaron Bond

Kotlin came first dude. If anything swift is a pathetic copy of kotlin. :)

Collapse
 
dimpiax profile image
Dmytro Pylypenko

Wikipedia says this to you?
Also, decision about who came first is incorrect to statement about parody.

Aaron, adhere to ethics. "Dude" – keep it to yourself.

Thread Thread
 
aaronbond profile image
Aaron Bond

the definition of parody is to imitate in a humorous way, so which came first is pertinent to whether or not something can be a "pathetic parody" of something else.

and what am i supposed to keep to myself?

Thread Thread
 
nobody1707 profile image
Nobody1707

But in point of fact, Chris Lattner first started creating Swift in 2011, it simply wasn't released until 2014. They're similar solely because they have a similar set of influences. Neither is based on the other.

Collapse
 
technoplato profile image
Michael Lustig - halfjew22@gmail.com

Now now children. Everyone can have a seat at the table.

Collapse
 
lovis profile image
Lovis • Edited

Also Kotlin's syntax sugar is under doubt.

Who doubts what? Don't really understand what that's supposed to mean.

Related to article: Any in Kotlin is a base class?

Yes, Any is basically Object from Java

Swift has Any datatype for func / protocol / enum etc. What Kotlin does have accordingly?

Don't really get what you mean again, but if you want to know about the Kotlin type system, you can check this: natpryce.com/articles/000818.html
In short: Everything in Kotlin extends Any, also interfaces, enums and function types.

All in all it's worth noting that calling a language "pathetic parody" of another language is not constructive and does not get us anywhere. Actually, it bespeaks of a pretty childish attitude and most of the dev.to community prefers to have a civilized discussion instead of ranting.

In the end, some things are better in Swift and some are better in Kotlin. Many things are the same.