Oracle going full Kotlin O_o <https://youtu.be/A-m...
# announcements
k
Oracle going full Kotlin O_o

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

👍 3
📢 1
p
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
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
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
What problems do you mean?
d
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
Looks like proper null safety is missing from that list.
p
- default arguments - string interpolation - safe call and ?: - extension functions and more features are also missing in their plans 🙂
e
biggest advantage of Java, retrocompatibility. Biggest problem of Java, retrocompatibility
1
o
I call it project Kava
a
Extension methods since their just syntactic sugar should be easiest to implement without breaking changes
something like this:
Copy code
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
Too little too late Java. Kotlin ftw 😉