HomePhorge

(PUP-2026) Add TypeFactory support for CallableType
ba3705096242Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(PUP-2026) Add TypeFactory support for CallableType

This adds support for creating a callable type via the
TypeFactory:

  • all_callables method produces a Callable compatile with all callables
  • callable method produces a Callable with specified arguments
  • with_block method adds a block Callable
  • with_optional_block method adds an optional block Callable

There is no need to call the "constrain_size" method since min/max
can be given directly in the calls (min, max) as the last optional
parameters, and max can be given as :default as infinity.

Details

Provenance
Henrik Lindberg <henrik.lindberg@cloudsmith.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUbcc9f24114db: (PUP-2026) Add lambda/callable type to model
Branches
Unknown
Tags
Unknown

Event Timeline

Henrik Lindberg <henrik.lindberg@cloudsmith.com> committed rPUba3705096242: (PUP-2026) Add TypeFactory support for CallableType (authored by Henrik Lindberg <henrik.lindberg@cloudsmith.com>).Apr 9 2014, 2:35 AM