Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
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 :
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
| This issue is related to: | ||||
| GROOVY-3237 | println is inconsistent |
|
|
|
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.
GROOVY-983. I do believe that such formatting should be configurable, but this issue doesn't reopen it now.