HomePhorge

(PUP-2794) Add an (internal) type called Unit and use in Callable
da50f02713f9Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(PUP-2794) Add an (internal) type called Unit and use in Callable

This adds a type named Unit, that is an "undef of sort" in that
it is assignable to anything, and anything can be assigned to it.

This type is not exposed in the Puppet Language, and it is only
used in Callables to describe that there is no type requirement on
a parameter. (For cases where reflection of a given lambda is
performed etc. or where the error raised when calling a block
is an acceptable solution).

Details

Provenance
Henrik Lindberg <henrik.lindberg@cloudsmith.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU1e42475f4fb5: (PUP-2794) Change Callable to mean "can be called with"
Branches
Unknown
Tags
Unknown

Event Timeline

Henrik Lindberg <henrik.lindberg@cloudsmith.com> committed rPUda50f02713f9: (PUP-2794) Add an (internal) type called Unit and use in Callable (authored by Henrik Lindberg <henrik.lindberg@cloudsmith.com>).Jul 1 2014, 7:06 PM