Remix.run Logo
samlinnfer a day ago

JEP 445: Unnamed Classes and Instance Main Methods

Released in Java 21

https://openjdk.org/jeps/445

dvdkon a day ago | parent | next [-]

It's a shame that they only introduced this as a feature only for single-file programs.

It would make Java a much better language in my eyes if it allowed package-level methods, or even multiple records/classes per file. But apparently "impact on how Java code is written in general" is not wanted.

Sammi 20 hours ago | parent [-]

People change their minds once they get used to something. There's reason to have patience.

rerdavies a day ago | parent | prev [-]

:-) So not even remotely dead.