News for hackers. Stuff that matters.
Re:From zero to 10M lines of Kotlin by sorokod on Tuesday October 25, 2022 @02:19PM (#33334267)
> With streams and the var keyword, Java is also not that much more verbose anymore than Kotlin

In general Kotlin is more concise, checkout these examples:

https://stackoverflow.com/questions/34642254/what-java-8-str...

Re:From zero to 10M lines of Kotlin by lmm on Tuesday October 25, 2022 @10:14PM (#33338918)
Those examples seem very biased; often the Java version does not use a more concise method that's available, or bloats the code by not importing a static method.
Re:From zero to 10M lines of Kotlin by sorokod on Wednesday October 26, 2022 @02:18AM (#33340396)
The Java examples are quoted from a Java stream tutorial.
Re:From zero to 10M lines of Kotlin by lmm on Wednesday October 26, 2022 @02:48AM (#33340561)
Sure, which was probably optimised for explicitness (e.g. showing where everything is imported from) rather than concision.