Hacker News new | past | comments | ask | show | jobs | submit login

> Yes, typing can be a pain in languages that don't support inference, e.g Java can be tedious

Java has had some type inference for almost 20 years, and local variable type inference (i.e. `var person1 = newPerson();`) for more than five.




I had no idea, thanks for letting me know. I'll update the post now.

Java, I'm sorry for swearing at you all these years. :P


I've been in the same position. Modern Java is a solid language. Most "enterprise" companies are still using Java 8 or if you're very lucky Java 12, so you really don't have access to all of the modern functionality and because of that I hated on Java for years. Java programming in the wild is a crap shoot at best.


> or if you're very lucky Java 12

You mean 11, right? 12 was not an LTS release, and has been out of support for years. The currently supported LTS releases are 8, 11, 17, and the recent 21 release.

https://en.wikipedia.org/wiki/Java_version_history


I'm sure you're right, but I also wouldn't be surprised if it was literally Java 12. I've seen all sorts of insanity in very large organizations.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: