The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

Search results for "module:Specio::Coercion"

Specio::Coercion - A class representing a coercion from one type to another River stage four • 14 direct dependents • 4004 total dependents

This class represents a coercion from one type to another. Internally, a coercion is a piece of code that takes a value of one type returns a new value of a new type. For example, a coercion from c<Num> to "Int" might round a number to its nearest in...

DROLSKY/Specio-0.48 - 11 Jun 2022 16:32:27 UTC

Specio - Type constraints and coercions for Perl River stage four • 14 direct dependents • 4004 total dependents

The "Specio" distribution provides classes for representing type constraints and coercion, along with syntax sugar for declaring them. Note that this is not a proper type system for Perl. Nothing in this distribution will magically make the Perl inte...

DROLSKY/Specio-0.48 - 11 Jun 2022 16:32:27 UTC

Specio::Subs - Make validation and coercion subs from Specio types River stage four • 14 direct dependents • 4004 total dependents

This module generates a set of helpful validation and coercion subroutines for all of the types defined in one or more libraries. To use it, simply import "Specio::Subs" passing a list of one or more library names. This module will load those librari...

DROLSKY/Specio-0.48 - 11 Jun 2022 16:32:27 UTC

Specio::DeclaredAt - A class to represent where a type or coercion was declared River stage four • 14 direct dependents • 4004 total dependents

This class provides a thin wrapper around some of the return values from Perl's "caller" built-in. It's used internally to identify where types and coercions are being declared, which is useful when generating error messages....

DROLSKY/Specio-0.48 - 11 Jun 2022 16:32:27 UTC

Specio::Declare - Specio declaration subroutines River stage four • 14 direct dependents • 4004 total dependents

This package exports a set of type declaration helpers. Importing this package also causes it to create a "t" subroutine in the calling package....

DROLSKY/Specio-0.48 - 11 Jun 2022 16:32:27 UTC

Specio::Constraint::Simple - Class for simple (non-parameterized or specialized) types River stage four • 14 direct dependents • 4004 total dependents

This class implements simple type constraints, constraints without special properties or parameterization. It does not actually contain any real code of its own. The entire implementation is provided by the Specio::Constraint::Role::Interface role, b...

DROLSKY/Specio-0.48 - 11 Jun 2022 16:32:27 UTC
6 results (0.041 seconds)