News for hackers. Stuff that matters.
Re:Rating 26 years of Java changes by speed_spread on Saturday October 11, 2025 @04:50PM (#45552574)
Kotlin didn't invent type inference, it's a feature from ML.
Re:Rating 26 years of Java changes by raddan on Sunday October 12, 2025 @07:29AM (#45557371)
And not only that, Java was like 40 years late to the party. ML had Hindley-Milner type inference back in 1978! I can only imagine how foreign ML must have felt compared to other languages at the time.
Re:Rating 26 years of Java changes by flykespice on Sunday October 12, 2025 @08:18AM (#45557671)
I never said Kotlin invented type inference, just that the syntax was straight adopted from kotlin
Re:Rating 26 years of Java changes by speed_spread on Sunday October 12, 2025 @04:14PM (#45561489)
What syntax? val and var were used by Scala before Kotlin. Lombok also has val. Java just needed to pick a keyword.