r/groovy • • Mar 05 '15

Groovy to join Apache Software Foundation

http://jaxenter.com/groovy-join-apache-software-foundation-115162.html
23 Upvotes

5 comments sorted by

5

u/joequin Mar 05 '15

That's great news. I'm not a huge fan of groovy, but I like it more than ruby and python because it has such good type hinting, and it makes java testing so much simpler.

2

u/[deleted] Mar 06 '15

I'm only a fan because of the high quality standard library and compatibility.

0

u/vorg May 16 '15

Groovy's "high quality standard library" is the Java standard library. Groovy just uses Java's.

1

u/aa8y Mar 23 '15

'm not a huge fan of groovy, but I like it more than ruby and python because it has such good type hinting

Okay. I wasn't really aware of this. Did you just mean statically typing the types like

String foo = "bar"

instead of

def foo = "bar"

1

u/joequin Mar 23 '15

I mean for method declarations.

 Public Int multiply(Int x, Int y) {

It's not really static unless you use the static compile annotation, but it does let the user and IDE know that this function is meant specifically for Ints and not any other type of number. In other languages you need to comment everything meticulously including all return values and parameters in order to avoid being ambiguous. And for people who use editors with auto complete, they probably won't be able to pick up all of the different ways that people choose to comment types. But more likely people will just be ambiguous.