Moose::Cookbook::Recipe7

Moose::Cookbook::Recipe7 is a Perl module that will make Moose fast with immutable.
Download

Moose::Cookbook::Recipe7 Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Dave Rolsky
  • Publisher web site:
  • http://search.cpan.org/~drolsky/

Moose::Cookbook::Recipe7 Tags


Moose::Cookbook::Recipe7 Description

Moose::Cookbook::Recipe7 is a Perl module that will make Moose fast with immutable. Moose::Cookbook::Recipe7 is a Perl module that will make Moose fast with immutable.SYNOPSIS package Point; use Moose; has 'x' => (isa => 'Int', is => 'ro'); has 'y' => (isa => 'Int', is => 'rw'); __PACKAGE__->meta->make_immutable;The Moose metaclass API provides a method make_immutable(). At a high level, this calling this method does two things to your class. One, it makes it faster. In particular, object construction and accessors are effectively "inlined" in your class, and no longer go through the meta-object system.Second, you can no longer make changes via the metaclass API such as adding attributes. In practice, this won't be a problem, as you don't usually need to do this at runtime after first loading the class. Requirements: · Perl


Moose::Cookbook::Recipe7 Related Software