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

Add generator syntax similar to Python's

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None

    Description

      Generators (like list comprehensions but without the list) rock. We need to add something like this to the language...

      e.g.

      http://www.python.org/peps/pep-0289.html

      Attachments

        1. Generator.java
          2 kB
          Stepan Koltsov

        Issue Links

          Activity

            People

              blackdrag Jochen Theodorou
              jstrachan James Strachan
              Votes:
              7 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: