News for hackers. Stuff that matters.
Re:Can I get some reasons to use Java instead of Kotlin? by wombat-man on Monday May 17, 2021 @11:50AM (#27184830)
I am using more and more kotlin these days as an Android app dev

it starts that way, but over time you don't need the question marks as much because you're dealing with more and more code where the variables are guaranteed to not be null.

Re:Can I get some reasons to use Java instead of Kotlin? by usrusr on Monday May 17, 2021 @12:53PM (#27185544)
Where my code is mostly interacting with itself I see question marks almost as rarely as I saw Optional during my scala adventures (still can't believe a decade went by!), but the android API provokes it's share of nullability and the kotlin approach to deal with it is just so "why didn't we have that back in the MIDlet days!"

Some coworkers seem to type questionmarks faster than that IntelliJ "convert to kotlin" button and I hate it, but much less than I'd expect.