Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8264707

HotSpot Style Guide should permit use of lambda

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 17
    • Fix Version/s: 18
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b17

      Description

      Lambda expressions are a new (in C++11) syntax for anonymous function objects. They are much more expressive than function object classes for many use-cases, particularly for small local functions. A simple function object class might require 1/2 dozen to a dozen LOC, much of which is ceremonial boiler plate. Such a class might often be replaced by 1-2 actually interesting LOC by using a lambda expression.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kbarrett Kim Barrett
              Reporter:
              kbarrett Kim Barrett
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: