Details
-
New Feature
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
None
-
None
-
None
Description
Consider supplying an "implies" operator, often denoted =>, for boolean expressions. Example:
if (itIsRaining => iAmUsingUmbrella) { println 'I am dry' }
itIsRaining => iAmUsingUmbrella is equivalent with !itIsRaining | iAmUsingUmbrella but the "implies" version is in many cases intutively more suitable.
Attachments
Issue Links
- is superceded by
-
GROOVY-11238 Logical implication operator revisited
- Closed
- relates to
-
GROOVY-2756 create new user overwritable operator methods for <,==,>,<=,=>,<==>
- Open