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

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


Branch: pkgsrc-2015Q2, Version: 20141021nb1, Package name: p5-Method-Signatures-20141021nb1, 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-Declare] [devel/p5-Devel-BeginLift] [devel/p5-PPI] [devel/p5-Const-Fast]

Required to build:
[devel/p5-Test-Exception] [devel/p5-Test-Warn]

Master sites: (Expand)

SHA1: cd27891188e7e292b10609a1b3a5f489463a72d2
RMD160: fb0031ecf344fe6d9894747a28749c5124654882
Filesize: 68.396 KB

Version history: (Expand)