Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37501153
en ru br
Репозитории ALT

Группа :: Разработка/Perl
Пакет: perl-MooX-late

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Текущая версия: 0.100-alt1
Время сборки: 24 февраля 2020, 14:21 ( 217.3 недели назад )
Размер архива: 28.89 Kb

Домашняя страница:   https://metacpan.org/release/MooX-late

Лицензия: perl
О пакете: easily translate Moose code to Moo
Описание:

the Moo manpage is a light-weight object oriented programming framework which aims.to be compatible with the Moose manpage. It does this by detecting when Moose has
been loaded, and automatically "inflating" its classes and roles to full
Moose classes and roles. This way, Moo classes can consume Moose roles,
Moose classes can extend Moo classes, and so forth.

However, the surface syntax of Moo differs somewhat from Moose. For example
the `isa' option when defining attributes in Moose must be either a string
or a blessed the Moose::Meta::TypeConstraint manpage object; but in Moo must be a
coderef. These differences in surface syntax make porting code from Moose to
Moo potentially tricky. the MooX::late manpage provides some assistance by enabling a
slightly more Moosey surface syntax.

MooX::late does the following:

=over

=item 1.

Allows `isa => $string' to work when defining attributes for all
Moose's built-in type constraints (and assumes other strings are package
names).

This feature requires the Types::Standard manpage.

=item 2.

Retired feature: this is now built in to Moo.

Allows `default => $non_reference_value' to work when defining
attributes.

=item 3.

Allows `lazy_build => 1' to work when defining attributes.

=item 4.

Exports `blessed' and `confess' functions to your namespace.

=item 5.

Handles certain attribute traits. Currently `Hash', `Array' and `Code'
are supported. This feature requires the MooX::HandlesVia manpage.

`String', `Number', `Counter' and `Bool' are unlikely to ever be
supported because of internal implementation details of Moo. If you need
another attribute trait to be supported, let me know and I will consider
it.

=item 6.

Supports `coerce => 1' if the type constraint is a blessed object
implementing the Type::API::Constraint::Coercible manpage.

=back

Five features. It is not the aim of `MooX::late' to make every aspect of
Moo behave exactly identically to Moose. It's just going after the low-hanging
fruit. So it does five things right now, and I promise that future versions
will never do more than seven.

Текущий майнтейнер: Igor Vlasenko

Список всех майнтейнеров, принимавших участие
в данной и/или предыдущих сборках пакета:

Список rpm-пакетов, предоставляемый данным srpm-пакетом:

  • perl-MooX-late
ACL:
     
    дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
    текущий майнтейнер: Michael Shigorin