groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul King (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (GROOVY-2576) Add "implies" operator for boolean expressions
Date Tue, 02 May 2017 02:37:04 GMT

     [ 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)

Mime
View raw message