Hacker News new | past | comments | ask | show | jobs | submit login

Absolutely, most groovy code is written in the dynamic style. But it's still way better off than Python where that is true AND its true for all the libraries it uses. With Python you can add as many type hints as you want, you are still going to get stuck at the first call that reaches outside your own code where nobody cared about types. With Groovy that call is going into Java or typed GDK code 95% of the time (unless you are talking about Grails which I'm not a big fan of for that reason), and hence you have the benefit of 95% of code already being typed by default.



There's no need to go full-blown Groovy for the scripty stuff. You can just use Java with the `var` keyword.


I think you're vastly underestimating what makes a script language "scripty" - not having to declare types is only one factor and probably not the most important.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: