Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 23 Next »

Please use this page to document all the ideas and wishes you'd like to see in Groovy.

  • Support standard for statement. (Note: supported by the JSR grammar.)
    e.g. for (int i = 0; i < 5; ++i)
    Unknown macro: {... I don't know whether the standard for statement is still not implemented till beta-10, or Groovy will not support it in 1.0 release.* *New function for integers to reverse bits.** *Concatenate string with null object. * 'Test'+null will produce 'Test'.* *Function/Global method 'NVL'. This method avoid null/empty string value of object.* E.g. NVL(null,'Test')='Test' and NVL('','Test')='Test'* *Joining of list without null elements.*          e.g. [null,'Hello','world',null].join(' ') will produce 'Hello world'*  *Simple and* *_Robust_* *way of executing external processes instead of using ProcessBuilder*. Make the convenient string.execute() handle blocked IO streams / threading so users are not required know or understand about ProcessBuilder* *Import Static. * Just like in Java 1.5. * *More Enumerable methods* for lists, arrays and maps (like map, pluck, invoke, ...)* Make *logical operators* (||, &&...) *return the value* instead of the boolean equivalenteg.{code}
    def x = '' || 'test'
    assert x == 'test'

def x = null || 15
assert x == 15

def list = ["key":"value", 1:1, 2:2, "noAuto":"noAuto"]
print(list[1] // will print 1
//Would like to have:
def autoMapList = ["key":"value", 1, 2, "auto"]
print(autoMapList[1]) // will print 1

  • No labels