groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul King (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (GROOVY-7568) Groovysh output should be more safe, verbose about types and String output
Date Mon, 28 Aug 2017 05:15:03 GMT

     [ https://issues.apache.org/jira/browse/GROOVY-7568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Paul King updated GROOVY-7568:
------------------------------
    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".

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

In particular Strings are printed without surrounding hyphens, 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
hyphens and escaping).

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


> Groovysh output should be more safe, verbose about types and String output
> --------------------------------------------------------------------------
>
>                 Key: GROOVY-7568
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7568
>             Project: Groovy
>          Issue Type: Improvement
>          Components: Groovysh
>            Reporter: Thibault Kruse
>            Priority: Minor
>
> 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".



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message