I was going through Chris Pine’s excellent “Learn to Program“, re-doing all of the exercises in Groovy (since it’s Ruby-centric). I ran across one where I need to get user input. Ruby’s got its easy “gets” method; what about Groovy? Weeelllll, here’s the idiomatic Groovy way to do such a thing:
print "Enter your input: "
def input = it.readLine()
Ouch! Easier than Java, but still orders of magnitude more complicated than Ruby. Still not a deal-breaker for me, though, since how many times in the real world do you get user input from the command line?