> I program a lot in Groovy these days, and it now has optional static typing with a limited amount of type inference
Groovy has enabled types on variables and functions (and fields and methods) since Groovy 1.0 but that makes the code run slower.
Re:Why Python is Slow: Looking Under the Hood
by zmmmmm on Saturday May 10, 2014 @02:31AM
(#7724692)
That is not what I am referring to. 2.0 introduced true static typing that compiles to code that not only enforces complete type correctness at compile time (unlike the old option) but executes at near Java speed.
I program a lot in Groovy these days, and it now has optional static typing with a limited amount of type inference. What I observe is that I voluntarily prefer to type my variables much of the time because it really does save time and takes only a fraction more effort than leaving them untyped. I find Python quite hard to decipher much of the time because it's nearly impossible to know what type a variable passed into a function is unless you trace back to the caller.