Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-3253

Change array formatting to be uniform

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.7, 1.6-rc-1
    • 1.6-rc-2
    • None
    • None

    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.

      Attachments

        Issue Links

          Activity

            People

              jimwhite James P. White
              jimwhite James P. White
              Votes:
              2 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: