./devel/p5-Method-Signatures, Method and function declarations with signatures and no source filter

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: pkgsrc-2011Q4, Version: 20111020, Package name: p5-Method-Signatures-20111020, Maintainer: pkgsrc-users

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.


Required to run:
[devel/p5-Devel-Pragma] [devel/p5-Data-Alias] [devel/p5-Any-Moose] [devel/p5-Const-Fast] [devel/p5-Devel-BeginLift] [devel/p5-Devel-Declare]

Master sites: (Expand)

SHA1: e29a04941ff1146eef60854d27cee237e1ceff9b
RMD160: 35208f59fc725605f76b5db7dbe2c0730f6305e7
Filesize: 46.068 KB

Version history: (Expand)