I would like to see more convenience libraries for the Rhino JavaScript interpreter. Currently in order to use most of the Java libraries in Rhino, you end up coding directly to the Java APIs, which defeats the point of a scripting language.
For example, I'd like to do this in Rhino to echo stdin to stdout (the resemblance to Python is not accidental):
for each (line in iterlines(java.System["in"]))
print(line);
But you can't do that out of the box or with a well-known library -- you have to write your own iterlines:
function iterlines(inputStream) {
var br = new java.io.BufferedReader(
new java.io.InputStreamReader(inputStream));
var line;
while (line = br.readLine())
yield(line);
}
JavaScript would be a great Java scripting language with those kinds of convenience functions built on top of it.