1 |
The Specio distribution provides classes for representing type constraints and |
2 |
coercion, along with syntax sugar for declaring them. |
3 |
|
4 |
Note that this is not a proper type system for Perl. Nothing in this |
5 |
distribution will magically make the Perl interpreter start checking a value's |
6 |
type on assignment to a variable. In fact, there's no built-in way to apply a |
7 |
type to a variable at all. |
8 |
|
9 |
Instead, you can explicitly check a value against a type, and optionally coerce |
10 |
values to that type. |
11 |
|
12 |
The author's long-term goal is to replace Moose's built-in types and |
13 |
MooseX::Types with this module. |
14 |
|
15 |
WWW: https://metacpan.org/release/Specio |