Re:Paving the on-ramp to Java
by hughjd on Thursday September 29, 2022 @04:26AM
(#33017841)
Doesn't Groovy (https://groovy-lang.org) achieve much of this? I remember being taught with it at university for some time before they introduced Java. With Groovy you don't need the class or main method, and can have a program which is just `println "Hello world!"`.
[ Parent
| on HN ]
Re:Paving the on-ramp to Java
by chrisseaton on Thursday September 29, 2022 @04:27AM
(#33017848)
> achieve much of this
Well no, because that on-ramps you to Groovy, not Java.
Groovy is not Java.
But it's a brilliant example of everything that could possibly go wrong if you blindly optimize for hello world
Or you get jealous of the runtime errors the JS, Rails and Python teams have.
Re:Paving the on-ramp to Java
by speed_spread on Thursday September 29, 2022 @08:09AM
(#33019437)
Or invent entirely new classes of errors with static type annotations that are actually utterly ignored.
Re:Paving the on-ramp to Java
by gkfasdfasdf on Thursday September 29, 2022 @09:36AM
(#33020432)
Neither is the final sample presented in the article! But I think the point is that Groovy already exists and can run most Java programs as well.