[ https://issues.apache.org/jira/browse/GROOVY-2576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15838051#comment-15838051 ]
Daniel Sun commented on GROOVY-2576: ------------------------------------ Implement the "implies" operator for the Groovy 3? > 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)