|Random thoughts about groovy
||[Feb. 3rd, 2008|08:07 pm]
So, I'm learning a new scripting language called Groovy. Yes I know I've not finished learning ruby... but I'm flitting at the moment. I'm also thinking of JavaFX.
So far, from what I've seen I'm not hugely impressed. Looking at the page outlining some of the differences between groovy and python, it mentioned that the equivalent of "
range(n)" was "
0..n". This isn't entirely true. The slice returns a slice object, as best I can tell.
Now that's the other thing, I'm running from a groovy shell (groovysh) and it just doesn't strike me as being as much of a "live" language as python. Being honest, that's what I love about the python language so much - I can play around with it in real time, and I can inspect it to bits. I can use things like
.__doc__ to figure out what's happening. As a result of all of that, I feel like I know python like the back of my hand. Looking now at the reflection stuff of Groovy, it appears only to be as strong as Java's reflection techniques, which really aren't that strong if you compare them to python.
Still, I'll learn a bit more and see how it goes.