Details

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

      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

        Hide
        Justin Piper added a comment -

        A power GString would be even better. Pass it to loggers, use it to implement toString, etc.

        Show
        Justin Piper added a comment - A power GString would be even better. Pass it to loggers, use it to implement toString , etc.

          People

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

            Dates

            • Created:
              Updated: