Path to this page:
./
devel/p5-Method-Signatures,
Method and function declarations with signatures and no source filter
Branch: CURRENT,
Version: 20170211nb7,
Package name: p5-Method-Signatures-20170211nb7,
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.
Required to run:[
lang/perl5] [
devel/p5-PPI] [
devel/p5-Mouse] [
devel/p5-Sub-Name] [
devel/p5-Devel-Declare] [
devel/p5-Any-Moose] [
devel/p5-Lexical-SealRequireHints] [
devel/p5-Const-Fast]
Required to build:[
devel/p5-Test-Exception] [
devel/p5-Module-Build] [
devel/p5-Test-Warn] [
pkgtools/cwrappers]
Master sites: (Expand)
Filesize: 81.677 KB
Version history: (Expand)
- (2024-11-16) Updated to version: p5-Method-Signatures-20170211nb7
- (2023-07-06) Updated to version: p5-Method-Signatures-20170211nb6
- (2022-06-28) Updated to version: p5-Method-Signatures-20170211nb5
- (2021-05-25) Updated to version: p5-Method-Signatures-20170211nb4
- (2020-09-01) Updated to version: p5-Method-Signatures-20170211nb3
- (2019-08-11) Updated to version: p5-Method-Signatures-20170211nb2
CVS history: (Expand)