[
https://issues.apache.org/jira/browse/GROOVY-2576?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Sun reassigned GROOVY-2576:
----------------------------------
Assignee: Daniel Sun
> 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
> Fix For: 4.0
>
>
> 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.4#6332)