Issue Details (XML | Word | Printable)

Key: GROOVY-1718
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Jochen Theodorou
Reporter: Guillaume Laforge
Votes: 0
Watchers: 0
Operations

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

Named-parameters without parentheses

Created: 13/Feb/07 10:03 AM   Updated: 30/Jun/07 11:28 AM
Component/s: None
Affects Version/s: None
Fix Version/s: 1.1-beta-2

Time Tracking:
Not Specified


 Description  « Hide
We can omit parentheses for top-level statements.
For instance, we can do:

println "foo"
foo.bar 1, 2, 3

But we can't omit the parentheses for named arguments.
The purpose of this feature request is to support things like:

monster.move x: 5.meters, y: 10.meters
fund.compare with:bench
credit account:"1234", amount:500.euros



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