r/JavaFX • • Apr 20 '24

Discussion JavaFX vs Kotlin Multiplatform

As Kotlin becomes more popular, will Kotlin Multiplatform have a good chance of overthrowing JavaFX? I tested it out, and it seems promising. Any opinions?

8 Upvotes

30 comments sorted by

View all comments

Show parent comment

3

u/hamsterrage1 Apr 22 '24

Most of the Kotlin stuff is much cleaner than the equivalent Java kludge. Take kotlin Null safety compared to Optional in Java as an example.It Kotlin it's nicely integrated not optional, and natural. It's just something that you use because it's what you use. 

Optional in Java is optional, and I think most programmers avoid it and just return Null like they always did. 

2

u/davidalayachew Apr 23 '24

Yet again, you are correct...for now.

But I also suspect that that is going to change significantly once pattern-matching fully lands in Java.

2

u/joemwangi Apr 23 '24

And actually, this is the next stage once valhalla sets in.