-
-
29 Apr 2020 14:36:24 UTC
- Distribution: MooX-TypeTiny
- Module version: 0.002003
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues (1)
- Testers (3743 / 0 / 0)
- Kwalitee
Bus factor: 1- 95.24% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (13.28KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Moo
- Type::Tiny
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
MooX::TypeTiny - Optimized type checks for Moo + Type::Tiny
SYNOPSIS
package Some::Moo::Class; use Moo; use MooX::TypeTiny; use Types::Standard qw(Int); has attr1 => (is => 'ro', isa => Int);
DESCRIPTION
This module optimizes Moo type checks when used with Type::Tiny to perform better. It will automatically apply to isa checks and coercions that use Type::Tiny. Non-Type::Tiny isa checks will work as normal.
This is done by inlining the type check in a more optimal manner that is specific to Type::Tiny rather than the general mechanism Moo usually uses.
With this module, setters with type checks should be as fast as an equivalent check in Moose.
It is hoped that eventually this type inlining will be done automatically, making this module unnecessary.
AUTHOR
haarg - Graham Knop (cpan:HAARG) <haarg@haarg.org>
CONTRIBUTORS
None so far.
COPYRIGHT
Copyright (c) 2015 the MooX::TypeTiny "AUTHOR" and "CONTRIBUTORS" as listed above.
LICENSE
This library is free software and may be distributed under the same terms as perl itself. See http://dev.perl.org/licenses/.
Module Install Instructions
To install MooX::TypeTiny, copy and paste the appropriate command in to your terminal.
cpanm MooX::TypeTiny
perl -MCPAN -e shell install MooX::TypeTiny
For more information on module installation, please visit the detailed CPAN module installation guide.