Christopher,

Well it all depends on how you want to extend them, some ways are better then others.

To extend the whole of Moose, take a look at the section on Extending and Embedding Moose in the Moose.pm POD. It explains how you can wrap the Moose system and extend it for your needs.

To just extend the options that 'has' accepts, you can do that with custom attribute metaclasses or attribute traits (there are cookbooks on both of these).

Short of that I would need to know more what you want the syntax too look like to give you any better clues.

- Steva


On Jun 22, 2008, at 12:03 PM, Christopher Brown wrote:

Hi All,

Quick questions: Is it advisable to extend the core Moose keywords. ( I
think the answer is no).  But if so, what is the best way to do it.

Background:
I am trying to extend MooseX::Getopt to provide patterns for the standard
GNU Command Line Options

Reply via email to