groovy

Named-parameters without parentheses

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.1-beta-2
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

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

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: