Unlike its bigger brother, Moo does not come with a built-in type system.
Instead, it allows us to add home-made subroutines
to each attribute that will check the type when we call the constructor or a setter.
MooX::late is a an extension for Moo, that provides several feature available in
Moose, but not in Moo.
For example, it allows us to set type-constraints in a declarative way
as the back-end.
Let's see a bit more details how does that work:
While many of the Perl Maven articles are free, this article is only available for Perl Maven Pro subscribers.
Perl Maven Pro - extra articles and screencasts
As a Perl Maven Pro subscriber you will enjoy a growing library of articles and screencasts.
After the launch at least four new articles or screencasts will be published every month.
The articles will contain topics such as Web Application Development,
Object Oriented programming, testing, deployment,
code walkthroughs, best practices, and many more subjects in Perl,
and in related technologies.
Unix/Linux shell, SQL and NoSQL just to name a few topic that I, as a Perl programmer
Subscriptions include all previous pro episodes.
In order to subscribe to the Perl Maven Pro, first
register and login
to the web site, and then pay via PayPal: