Path to this page:
./
devel/p5-Method-Signatures,
Method and function declarations with signatures and no source filter
Branch: pkgsrc-2012Q3,
Version: 20120523,
Package name: p5-Method-Signatures-20120523,
Maintainer: pkgsrc-usersMethod::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.
Master sites: (Expand)
SHA1: dfbc867d8d73a9a5b19d431701a0a18356ba5bab
RMD160: c92276f395a99853b94a27de13ccbfb33b0b9169
Filesize: 46.785 KB
Version history: (Expand)
- (2012-10-02) Package added to pkgsrc.se, version p5-Method-Signatures-20120523 (created)