develooper Front page | perl.moose | Postings from December 2010

Role::Basic -- Roles and nothing else

Thread Next
From:
Ovid
Date:
December 29, 2010 01:24
Subject:
Role::Basic -- Roles and nothing else
Message ID:
147777.94717.qm@web65714.mail.ac4.yahoo.com
Hi all,

It's the same old story: some of my colleagues were interested in roles, but leery of pulling Moose and its dependencies into our codebase. As a result, I've released Role::Basic:

  https://github.com/Ovid/Role-Basic
  http://search.cpan.org/dist/Role-Basic/

And I have an extended explanation of it at 

  http://bit.ly/e4jWWc 
  http://blogs.perl.org/users/ovid/2010/12/rolebasic---when-you-only-want-roles.html

My intention is to have this be a safe subset of Moose::Role behavior to ensure that when/if people would like to upgrade to all of Moose, they're not dependent on Role::Basic behavior. My hope is that Role::Basic can be a "stepping stone" to Moose for those who want roles but are leery of /^(?:Any::)?(?:Mo[ou]se|Moo)$/. I describe more in the blogs.perl.org post about why I didn't go with an existing module for this.

If anyone sees any incompatibilities between Role::Basic and Moose::Role, please let me know.

Cheers,
Ovid
--
Live and work overseas - http://overseas-exile.blogspot.com/
Buy the book           - http://www.oreilly.com/catalog/perlhks/
Tech blog              - http://blogs.perl.org/users/ovid/
Twitter                - http://twitter.com/OvidPerl/

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About