Joost Heijkoop & Urs Peter - Kotlin vs Scala

preview_player
Показать описание
We have almost 20 years of Scala experience between us and have experience with many other languages. Recently we have jumped onto Kotlin, because it look very promising as Java competitor. Of course there is no one size fits all solution. We will show how the two languages compare and explain why and when, you should pick one over the other. Or maybe should consider some else all together.
Рекомендации по теме
Комментарии
Автор

Scala3 also introduced extension method mechanism and deprecated implicit class way. And use "given" and "using" keyword to displace Implicit params and methods.

blacknick
Автор

I am a Kotlin developer and I am learning Scala with this video :D
You can achieve currying in Kotlin by making an extension function with nested lambdas. It will only take 2 rows to write, but you will need to have a separate function for each certain amount of parameters

trkantiteza
Автор

If your type system allows you to have unused type parameter on a data type, you have phantom types. So... You can do phantom types in C++, Java, C#, and yes, Kotlin too.

missingfaktor
Автор

Before watching this talk I had no intention of trying Kotlin again. I had tried it when I was first learning, and beginning to love, Scala. The main thing that turned me off of the language early on was the nullable types syntax, at the time I simply found it to be awkward and inelegant. Oddly enough I found the Scala solution (Option) elegant. Both solve the same problem, but Kotlin does it in a more concise fashion (for a user of the language at least, since in the background there is a mirror to the entire type hierarchy which the Option approach does not require).

This talk convinced me that it's worth taking the time to familiarize myself with it. While the freedom Scala grants to the developer is empowering, too much freedom can be overwhelming and stifle progress. Looking forward to using Kotlin!

dorianthiessen
Автор

by other word scala is more powerful than kotlin

Автор

These guys are not up to date with developments in java. Java is getting records (like case/data classes), and pattern matching too.

Jankoekepannekoek