Search code examples
groovygroovy++

Is all Groovy code valid with Groovy++?


After seeing this link, I want to try Groovy++, but I have a worry;

Is all of Groovy's syntax valid in Groovy++?

For example I can do this in Groovy:

def list = [1,2]

Is the above code valid in Groovy++?


Solution

  • The aim (I believe) is to get it to to support as much Groovy code as is possible.

    I believe there are currently a few areas that are not working including:

    1. Multiple assignment - doesn't compile
    2. The spread-dot operator can cause problems in some situations
    3. .with {} doesn't work

    But you can always work around these issues, or don't mark the class that needs them as @Typed