On Aug 12, 2009, at 9:06 PM, Hans Dieter Pearcey wrote:

Excerpts from Jesse Luehrs's message of Wed Aug 12 17:02:43 -0700 2009:
The idea behind this is to reserve a namespace for core options
("things starting with -") so that extensions can use other option names
without interfering with Moose.

+1, awesome

hdp.

This may severely affect porting bioperl to Moose (Biome: http://github.com/cjfields/biome/tree/master) . BioPerl has been using the same convention, e.g. prefixing '-' for named arguments passed during instantiation and to methods for years now, and is something that's already adopted (a few months ago) into Biome.

Example code from bioperl:

    use Bio::AlignIO;

    $inputfilename = "testaln.fasta";
    $in  = Bio::AlignIO->new(-file   => $inputfilename ,
                             -format => 'clustalw');
    $out = Bio::AlignIO->new(-file   => ">out.aln.pfam" ,
                             -format => 'pfam');

    while (my $aln = $in->next_aln) {
        $aln->add_seq(-seq   => $foo,
                      -pos   => 1);
        $out->write_aln($aln);
    }

chris

Reply via email to