[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1014881: ITP: libsyntax-keyword-multisub-perl -- multiple subroutine dispatch syntax extension



Package: wnpp
Owner: gregor herrmann <gregoa@debian.org>
Severity: wishlist
X-Debbugs-CC: debian-devel@lists.debian.org, debian-perl@lists.debian.org

* Package name    : libsyntax-keyword-multisub-perl
  Version         : 0.02
  Upstream Author : Paul Evans <leonerd@leonerd.org.uk>
* URL             : https://metacpan.org/release/Syntax-Keyword-MultiSub
* License         : Artistic or GPL-1+
  Programming Lang: Perl
  Description     : multiple subroutine dispatch syntax extension

Syntax::Keyword::MultiSub provides a new keyword, multi, to put before
subroutine declarations, which permits multiple distinct function bodies to
be provided, which take different parameters. A call to a multi sub will
invoke whichever function body best fits the arguments passed.

Currently this module can only make dispatching decisions based on the number
of arguments as compared to the number of signature parameters each body was
expecting. It requires perl version 5.26 or above, in order to get enough
support from signatures. Note also enabling this module does not enable the
signatures feature; you must do that independently.

The package will be maintained under the umbrella of the Debian Perl Group.

--
Generated with the help of dpt-gen-itp(1) from pkg-perl-tools.

Attachment: signature.asc
Description: Digital Signature


Reply to: