Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
flykespice
4 months ago
|
parent
|
context
|
favorite
| on:
Rating 26 years of Java changes
It's another thing they adopted from Kotlin, since Kotlin is supposed to be a "better java". Now Java is retroactively adopting Kotlin freatures.
speed_spread
4 months ago
[–]
Kotlin didn't invent type inference, it's a feature from ML.
raddan
4 months ago
|
parent
|
next
[–]
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.
flykespice
4 months ago
|
parent
|
prev
[–]
I
never
said Kotlin invented type inference, just that the syntax was straight adopted from kotlin
speed_spread
4 months ago
|
root
|
parent
[–]
What syntax? val and var were used by Scala before Kotlin. Lombok also has val. Java just needed to pick a keyword.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: