[ 
https://issues.apache.org/jira/browse/GROOVY-2892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eric Milles updated GROOVY-2892:
--------------------------------
    Fix Version/s:     (was: 4.x)

> Unless / If expressions support
> -------------------------------
>
>                 Key: GROOVY-2892
>                 URL: https://issues.apache.org/jira/browse/GROOVY-2892
>             Project: Groovy
>          Issue Type: Wish
>          Components: syntax
>            Reporter: Julien Ponge
>            Priority: Minor
>
> I would love to see Groovy support right-side unless / if expressions like in 
> Python or Ruby as they make the code often more readable.
> Here is a small example:
> {noformat}
> doSomething() unless (x > 10)
> (...)
> triggerSomethingNasty() if (x < 10)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to