|
|
|
|
|
by kaba0
1353 days ago
|
|
The genius of this proposal is that besides the implicit unnamed class, the other changes are all purely done to the program launcher program, no changes are proposed for the language at all. And one could argue that quickly writing up some program happens often regardless of skillset (I do make at least two psvm Main classes per month), so the code reduction there is also a welcome change. |
|
But the behaviour of the launcher is covered by the language spec isn't it? It's the language that specifies how main is selected.
https://docs.oracle.com/javase/specs/jls/se19/html/jls-12.ht...