History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GROOVY-2576
Type: New Feature New Feature
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Tord Alenljung
Votes: 1
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
groovy

Add "implies" operator for boolean expressions

Created: 05/Feb/08 05:34 AM   Updated: 25/Apr/08 02:07 AM
Component/s: syntax
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Issue Links:
Related
 


 Description  « Hide
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.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.