pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/p5-Method-Signatures
Module Name: pkgsrc
Committed By: sno
Date: Tue Nov 15 18:05:21 UTC 2011
Update of /cvsroot/pkgsrc/devel/p5-Method-Signatures
In directory ivanova.netbsd.org:/tmp/cvs-serv4051
Log Message:
Importing package for CPAN module Method::Signatures 20111020 into
devel/p5-Method-Signatures to let developers use new keywords func and
methods when writing scripts or modules for the Perl programming language.
This package is a dependency of scheduled update of devel/p5-Git-CPAN-Patch
to 0.7.0.
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. No more my $self = shift.
Also allows signatures, very similar to Perl 6 signatures.
Also does type checking, understanding all the types that Moose (or Mouse)
would understand.
And it does all this with no source filters.
Status:
Vendor Tag: TNF
Release Tags: pkgsrc-base
N pkgsrc/devel/p5-Method-Signatures/Makefile
N pkgsrc/devel/p5-Method-Signatures/DESCR
N pkgsrc/devel/p5-Method-Signatures/distinfo
No conflicts created by this import
Home |
Main Index |
Thread Index |
Old Index