You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Daniel Sun (JIRA)" <ji...@apache.org> on 2017/01/25 16:29:26 UTC
[jira] [Assigned] (GROOVY-2576) Add "implies" operator for boolean
expressions
[ 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)