Acme-CPANModules-Roles

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN


VERSION
    This document describes version 0.002 of Acme::CPANModules::Roles (from
    Perl distribution Acme-CPANModules-Roles), released on 2023-10-31.

DESCRIPTION
    Roles are a way to write classes by composing them from simpler
    components, instead of using inheritance from parent classes.

    The Perl core does not provide a role mechanism for you, but there are
    several role frameworks you can choose in Perl. This list orders them
    from the most lightweight.

    Role::Tiny. Basic role support plus method modifiers ("before", "after",
    "around").

    Moo::Role. Based on Role::Tiny, it adds attribute support. Suitable if
    you use Moo as your object system.

    Role::Basic. Despite having less features than Role::Tiny (no method
    modifiers), Role::Basic starts a bit slower because it loads some more

lib/Acme/CPANModules/Roles.pm  view on Meta::CPAN

our $VERSION = '0.002'; # VERSION

our $LIST = {
    summary => "List of libraries for doing roles with Perl",
    description => <<'_',

Roles are a way to write classes by composing them from simpler components,
instead of using inheritance from parent classes.

The Perl core does not provide a role mechanism for you, but there are several
role frameworks you can choose in Perl. This list orders them from the most
lightweight.

<pm:Role::Tiny>. Basic role support plus method modifiers (`before`, `after`,
`around`).

<pm:Moo::Role>. Based on Role::Tiny, it adds attribute support. Suitable if you
use <pm:Moo> as your object system.

<pm:Role::Basic>. Despite having less features than Role::Tiny (no method
modifiers), Role::Basic starts a bit slower because it loads some more modules.

lib/Acme/CPANModules/Roles.pm  view on Meta::CPAN

=head1 VERSION

This document describes version 0.002 of Acme::CPANModules::Roles (from Perl distribution Acme-CPANModules-Roles), released on 2023-10-31.

=head1 DESCRIPTION

Roles are a way to write classes by composing them from simpler components,
instead of using inheritance from parent classes.

The Perl core does not provide a role mechanism for you, but there are several
role frameworks you can choose in Perl. This list orders them from the most
lightweight.

L<Role::Tiny>. Basic role support plus method modifiers (C<before>, C<after>,
C<around>).

L<Moo::Role>. Based on Role::Tiny, it adds attribute support. Suitable if you
use L<Moo> as your object system.

L<Role::Basic>. Despite having less features than Role::Tiny (no method
modifiers), Role::Basic starts a bit slower because it loads some more modules.



( run in 0.704 second using v1.01-cache-2.11-cpan-df04353d9ac )