Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: groovy-jdk
    • Labels:
      None
    • Environment:
      all

      Description

      (from http://stackoverflow.com/questions/3231974/groovy-power-print )

      Groovy has a power assert, but I'd like a power print. For example,

      def foo = 'banna5', monkey=7, x=70
      println "foo=$foo, monkey=$monkey, x/2=$

      {x/2}

      "

      See the repeating foo, monkey, and expression in the println line... what I want to type is this,

      pprint foo, monkey, x/2

      This is the output I expect (from either println or pprintln),

      foo=banna5, monkey=7, x/2=35

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Bob Herrmann
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development