Package : perl-MooseX-NewDefaults > RPM : perl-MooseX-NewDefaults-0.4.0-8.mga9.src.rpm

Basic items

Name perl-MooseX-NewDefaults
Version 0.4.0
Release 8.mga9
URL https://metacpan.org/release/MooseX-NewDefaults
Group Development/Perl
Summary Alter attribute defaults with less pain
Size 25KB
Arch noarch
License LGPLv2

Description

Ever start using a package from the CPAN, only to discover that it
requires lots of subclassing and "has '+foo' => (default => ...)"? It's
not recommended Moose best practice, and it's certainly not the
prettiest thing ever, either.

That's where we come in.

This package introduces new sugar that you can use in your class,
default_for (as seen above).

e.g.

has '+foo' => (default => sub { 'a b c' });

...is the same as:

default_for foo => sub { 'a b c' };

Media information

Distribution release Mageia cauldron
Media name core-release
Media arch i586

Advanced items

Source RPM NOT IN DATABASE ?!
Build time 2022-03-20 11:01:10
Changelog View in Sophie
Files View in Sophie
Dependencies View in Sophie