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

Paul King updated GROOVY-2576:
------------------------------
    Fix Version/s:     (was: 3.0.0-alpha-1)

> Add "implies" operator for boolean expressions
> ----------------------------------------------
>
>                 Key: GROOVY-2576
>                 URL: https://issues.apache.org/jira/browse/GROOVY-2576
>             Project: Groovy
>          Issue Type: New Feature
>          Components: syntax
>            Reporter: Tord Alenljung
>            Assignee: Daniel Sun
>            Priority: Minor
>
> Consider supplying an "implies" operator, often denoted {{=>}}, for boolean 
> expressions. Example:
> {code}
> if (itIsRaining => iAmUsingUmbrella) {
>   println 'I am dry'
> }
> {code}
> {{itIsRaining => iAmUsingUmbrella}} is equivalent with {{!itIsRaining | 
> iAmUsingUmbrella}} but the "implies" version is in many cases intutively more 
> suitable.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to