devel/p5-Method-Signatures 20170211 DragonFly
Method and function declarations with signatures and no source filter
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- ART10, GPLv1+
- Categories
- devel, perl5
- Package size
- 46.4 KiB, 135.2 KiB installed
Description
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 (by default). No more my $self = shift.
It also allows signatures, very similar to Perl 6 signatures.
It also does type checking, understanding all the types that Moose (or Mouse) would understand.
And it does all this with no source filters.
In the other systems
| System | Port | Version |
|---|---|---|
| DragonFly | devel/p5-Method-Signatures | 20170211 |
| FreeBSD | devel/p5-Method-Signatures | 20170211 |
| NetBSD | devel/p5-Method-Signatures | 20170211nb9 |
| HardenedBSD | devel/p5-Method-Signatures | 20170211 |
| GhostBSD | devel/p5-Method-Signatures | 20170211 |
Install
Binary package:
pkg install p5-Method-Signatures
From DPorts:
cd /usr/dports/devel/p5-Method-Signatures && make install clean
Dependencies
Run dependencies 8
No port depends on this one.