4ee23c50aa
Method::Signatures provides two new keywords, func and method, so that you can write subroutines with signatures instead of having to spell out my $self = shift; my($thing) = @_ func is like sub but takes a signature where the prototype would normally go. This takes the place of my($foo, $bar) = @_ and does a whole lot more. method is like func but specifically for making methods. It will automatically provide the invocant as $self (by default). No more my $self = shift. It also allows signatures, very similar to Perl 6 signatures. It also does type checking, understanding all the types that Moose (or Mouse) would understand. And it does all this with no source filters. WWW: http://search.cpan.org/dist/Method-Signatures/
8 lines
341 B
Text
8 lines
341 B
Text
%%SITE_PERL%%/Method/Signatures.pm
|
|
%%SITE_PERL%%/Method/Signatures/Modifiers.pm
|
|
%%SITE_PERL%%/Method/Signatures/Parameter.pm
|
|
%%SITE_PERL%%/Method/Signatures/Signature.pm
|
|
%%SITE_PERL%%/Method/Signatures/Types.pm
|
|
%%SITE_PERL%%/Method/Signatures/Utils.pm
|
|
%%PERL5_MAN3%%/Method::Signatures.3.gz
|
|
%%PERL5_MAN3%%/Method::Signatures::Modifiers.3.gz
|