Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-2027

Add support for Lambda in Function Call API

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 3.6.0
    • Component/s: Compiler
    • Labels:
      None
    • Template:
    • Story Points:
      2
    • Sprint:
      Week 2014-4-09 to 2014-4-16, Week 2014-4-16 to 2014-4-23

      Description

      The new Function API (PUP-1799) does not specify a mechanism to handle a Lambda as the last argument.

      This issue is blocked by PUP-2026 (adding a lambda type).

      There also needs to be smart handling of a lambda given to a function; if it should be included in the dispatched set of parameters or not, and how it is delivered to a method (like a Ruby block / on the side), or as an explicit parameter.

      There are also issues regarding if the function API should help with typical processing of lambda arguments (the behavior of the function may differ based on the number of arguments given etc. This makes it more complex than just a "accepts Lambda taking these number of args and of these types" kind of declaration.

      Right now, there is 0 support - at least it must be possible to handle an explicit Lambda among the parameters.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              joshua.partlow Joshua Partlow
              Reporter:
              henrik.lindberg Henrik Lindberg
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support