https://kotlinlang.org logo
Title
k

Krs

08/09/2018, 12:13 PM
Oracle going full Kotlin O_o

https://youtu.be/A-mxj2vhVAA?t=756

👍 3
📢 1
p

Pavlo Liapota

08/09/2018, 12:39 PM
Java will never be “full Kotlin” 🙂 But Java evolution is good. It will be easier for Java developers
when
they
switch
to Kotlin 😉
😀 5
m

maxmello

08/09/2018, 12:54 PM
This shows me that the whole multiplatform and native stuff is very important for Kotlin’s future. Even if writing Java is as fun as writing Kotlin, there will still be a lot more use cases for Kotlin over Java.
💯 1
1
d

dalexander

08/09/2018, 1:13 PM
Agree that multiplatform is important, I think it may become increasingly important with how Oracle has decided to handle the Java release cycle, which could potentially create a lot of problems.
p

Pavlo Liapota

08/09/2018, 1:15 PM
What problems do you mean?
d

dalexander

08/09/2018, 1:17 PM
Would be pretty easy to break compatibility, combined with a 6 month major version number release cycle it seems very likely to be relatively chaotic compared to the previous 20 or so years.
a

agrosner

08/09/2018, 1:29 PM
Looks like proper null safety is missing from that list.
p

Pavlo Liapota

08/09/2018, 1:46 PM
- default arguments - string interpolation - safe call and ?: - extension functions and more features are also missing in their plans 🙂
e

elect

08/09/2018, 2:06 PM
biggest advantage of Java, retrocompatibility. Biggest problem of Java, retrocompatibility
1
o

oshai

08/09/2018, 6:43 PM
I call it project Kava
a

agrosner

08/09/2018, 7:23 PM
Extension methods since their just syntactic sugar should be easiest to implement without breaking changes
something like this:
String isNotNullOrEmpty(String this) {
 return this != null && !this.isEmpty();
}
using
this
as first parameter since its a reserved keyword
then call sites would be
"yes".isNotNullOrEmpty()
and import would just point like a regular static method. problem solved
x

xexiz

08/21/2018, 10:47 PM
Too little too late Java. Kotlin ftw 😉