top | item 33017841

(no title)

hughjd | 3 years ago

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!"`.

discuss

order

chrisseaton|3 years ago

> achieve much of this

Well no, because that on-ramps you to Groovy, not Java.

aaa_aaa|3 years ago

Groovy is not Java.

usrusr|3 years ago

But it's a brilliant example of everything that could possibly go wrong if you blindly optimize for hello world

gkfasdfasdf|3 years ago

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.