Details
-
Type:
Wish
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: syntax
-
Labels:None
-
Number of attachments :
Description
I would love to see Groovy support right-side unless / if expressions like in Python or Ruby as they make the code often more readable.
Here is a small example:
doSomething() unless (x > 10) (...) triggerSomethingNasty() if (x < 10)
what we could have is
unless(x>10){doSomething}{doSomething}.unless(x>10)unless(x>10){doSomething}{doSomething}.unless(x>10)