Uploaded image for project: 'Commons JEXL'
  1. Commons JEXL
  2. JEXL-365

Lambda expressions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.1
    • 3.3
    • None

    Description

      WHAT:
      JEXL currently only allow lambda body as being block of potentially multiple statements. This enhancement will allow lambda body as a single expression which would make syntax simpler in many cases.
      Typical case is predicates or iteration functors.
      Example:

      var oddp = x-> (x % 2) == 1;
      

      Attachments

        Issue Links

          Activity

            People

              henrib Henri Biestro
              henrib Henri Biestro
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: