News for hackers. Stuff that matters.
Re:“I am literally losing sleep” over Java (1996) by thomascgalvin on Thursday January 06, 2022 @10:48AM (#29825040)
> Kotlin is OK but isn't sufficiently better than Java to be worth using when any Kotlin dev is going to have to know Java and Java-Kotlin mapping pretty well to use libraries.

One of the big benefits of Kotlin is that if you know Java, you pretty much already know Kotlin, too. A good Java dev can get spun up on the basics in a day or two.

> Both Scala and Kotlin are sufficiently similiar to Java to provide no real benefit.

Kotlin provides a ton of ergonomic features that I absolutely adore. Named parameters and default parameter values alone save me tens or hundreds of lines of code.

I think of Kotlin as what would happen if a Java developer looked at Javascript and asked "okay, but what if this didn't suck?"

Re:“I am literally losing sleep” over Java (1996) by pionar on Thursday January 06, 2022 @12:49PM (#29826916)
> I think of Kotlin as what would happen if a Java developer looked at Javascript and asked "okay, but what if this didn't suck?"

I think you mean "what if we took C# and put it on the JVM"? /s

Honestly, C# has had most of the features Kotlin "adds on" to Java for years, even decades.

Re:“I am literally losing sleep” over Java (1996) by pjmlp on Thursday January 06, 2022 @02:27PM (#29828616)
Kotlin's future is tied to Android, on the JVM I don't even care it exists.
Re:“I am literally losing sleep” over Java (1996) by DerArzt on Tuesday January 11, 2022 @09:15AM (#29891650)
How so? While yes Android is one of the most common uses at the moment for Kotlin (thanks to Google making it a first class supported language for the platform) it is still dependent on the JVM, thus can do anything that Java Can.
Re:“I am literally losing sleep” over Java (1996) by PaulHoule on Thursday January 06, 2022 @11:06AM (#29825316)
You can’t beat Javascript for ergonomic passing conventions and packing and unpacking of lists and dicts.