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

method invocation with syntactic sugar for closures

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 1.0-beta-1
    • ast builder, parser
    • None

    Description

      support method invocation where last parameter can be specified as a closure

      collection.each

      {i| print(i); }

      table(valign:"Centre") {
      tr {
      td("hello") {
      }
      }

      Attachments

        Activity

          People

            bob Bob Paulin
            bob Bob Paulin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 4h
                4h
                Remaining:
                Remaining Estimate - 4h
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified