groovy

Change array formatting to be uniform

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.5.7, 1.6-rc-1
  • Fix Version/s: 1.6-rc-2
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

As detailed in GROOVY-3237, Groovy currently uses different delimiters when formatting Object[] vs. primitive arrays. Arrays of either type should use the same delimiter.

A recent poll (<http://www.nabble.com/What-shall-it-be-for-arrays%3A-%22-...-%22%2C-%22%7B...%7D%22%2C-or-%22%28...%29%22--td21272614.html>) was overwhelmingly (unanimous so far) in favor of square brackets, just like collections and primitive arrays are in Groovy 1.5.

Issue Links

Activity

Hide
Jim White added a comment -

Long ago there was a proposal to make the delimiter for all aggregates customizable via API : GROOVY-983.

I do believe that such formatting should be configurable, but this issue doesn't reopen it now.

Show
Jim White added a comment - Long ago there was a proposal to make the delimiter for all aggregates customizable via API : GROOVY-983. I do believe that such formatting should be configurable, but this issue doesn't reopen it now.
Hide
Jim White added a comment -

Committed to trunk (cs14851).

Show
Jim White added a comment - Committed to trunk (cs14851).
Hide
Jim White added a comment -

Merged to 1.6 branch (cs14867, cs14869)

Show
Jim White added a comment - Merged to 1.6 branch (cs14867, cs14869)

People

Vote (2)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: