Acme-CPANModules-ArrayClassBuilder

 view release on metacpan or  search on metacpan

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

package Acme::CPANModules::ArrayClassBuilder;

use strict;

our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
our $DATE = '2022-03-08'; # DATE
our $DIST = 'Acme-CPANModules-ArrayClassBuilder'; # DIST
our $VERSION = '0.002'; # VERSION

our $LIST = {
    summary => 'List of class builders for array-backed classes',
    description => <<'_',

This list catalogs class builders for classes that use array (instead of the
popular hash) as their backend storage.

Hash is the vastly popular backend for object due to its flexibility and
convenient mapping of hash keys to object attributes, but actually Perl objects
can be references to any kind of data (array, scalar, glob). Storing objects as
other kinds of references can be useful in terms of attribute access speed,
memory size, or other aspects. But they are not as versatile and generic as
hash.

_
    entries => [
        {module => 'Class::Accessor::Array'},
        {module => 'Class::Accessor::Array::Glob'},
        {module => 'Class::XSAccessor::Array'},
        {module => 'Class::ArrayObjects'},
        {module => 'Object::ArrayType::New',
         summary => 'Only supports defining constants for array indexes'},
    ],
};

1;
# ABSTRACT: List of class builders for array-backed classes

__END__

=pod

=encoding UTF-8

=head1 NAME

Acme::CPANModules::ArrayClassBuilder - List of class builders for array-backed classes

=head1 VERSION

This document describes version 0.002 of Acme::CPANModules::ArrayClassBuilder (from Perl distribution Acme-CPANModules-ArrayClassBuilder), released on 2022-03-08.

=head1 DESCRIPTION

This list catalogs class builders for classes that use array (instead of the
popular hash) as their backend storage.

Hash is the vastly popular backend for object due to its flexibility and
convenient mapping of hash keys to object attributes, but actually Perl objects
can be references to any kind of data (array, scalar, glob). Storing objects as
other kinds of references can be useful in terms of attribute access speed,
memory size, or other aspects. But they are not as versatile and generic as
hash.

=head1 ACME::CPANMODULES ENTRIES

=over

=item * L<Class::Accessor::Array> - Generate accessors/constructor for array-based object

Author: L<PERLANCAR|https://metacpan.org/author/PERLANCAR>

=item * L<Class::Accessor::Array::Glob> - Generate accessors/constructor for array-based object (supports globbing attribute)

Author: L<PERLANCAR|https://metacpan.org/author/PERLANCAR>

=item * L<Class::XSAccessor::Array> - Generate fast XS accessors without runtime compilation

Author: L<SMUELLER|https://metacpan.org/author/SMUELLER>

=item * L<Class::ArrayObjects> - utility class for array based objects

Author: L<RONAN|https://metacpan.org/author/RONAN>

=item * L<Object::ArrayType::New> - Only supports defining constants for array indexes

Author: L<AVENJ|https://metacpan.org/author/AVENJ>

=back

=head1 FAQ

=head2 What is an Acme::CPANModules::* module?

An Acme::CPANModules::* module, like this module, contains just a list of module
names that share a common characteristics. It is a way to categorize modules and
document CPAN. See L<Acme::CPANModules> for more details.

=head2 What are ways to use this Acme::CPANModules module?

Aside from reading this Acme::CPANModules module's POD documentation, you can
install all the listed modules (entries) using L<cpanm-cpanmodules> script (from
L<App::cpanm::cpanmodules> distribution):



( run in 0.727 second using v1.01-cache-2.11-cpan-f5b5a18a01a )