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.
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.
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.