News for hackers. Stuff that matters.
Re:Java 21: No more public static void main by exabrial on Monday June 05, 2023 @12:15PM (#36198501)
I'd vote no on most of these for Java language itself; it's supposed to be a C-like language, not a Ruby-like language. However, the jvm doesn't care what the source language is, it just cares about bytecode. These belong in a Kotlin or other language.
Re:Java 21: No more public static void main by Aaron2222 on Monday June 05, 2023 @05:50PM (#36204388)
A lot of these are no-gos anyway from a backwards compatibility perspective (many of which being entirely syntactical), and they're already in Kotlin, so I'm not sure why you wouldn't just use that. A couple I could potentially see making their way into Java though.
Re:Java 21: No more public static void main by exabrial on Monday June 05, 2023 @11:19PM (#36207630)
Exactly my thoughts. Let Java be Java. It's not that I disagree with most of them I just don't think it needs to have every bell, whistle, and doodad either. Simplicity is beauty.
Re:Java 21: No more public static void main by Aaron2222 on Tuesday June 06, 2023 @02:16AM (#36208836)
No point completely reshaping Java into something that's already on the JVM anyway.