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

Groovysh output should be more safe, verbose about types and String output

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Groovysh
    • Labels:
      None

      Description

      The output of buffer evaluation results in Groovy hides a lot of useful information from the user.

      In particular Strings are printed without surrounding quotes, collections are printed without telling whether they are Lists, Maps, Sets, or Ranges. Ranges are printed fully as lists (which can be unnecessarily long).

      An implementation is almost done at https://github.com/tkruse/incubator-groovy/tree/pretty

      Both Python and Ruby shells follow the approach of printing strings as code-strings (with quotes and escaping).

      The downside or more information is that this output could be regarded as "too noisy".

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tkruse Thibault Kruse
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: