develooper Front page | perl.perl5.porters | Postings from December 2015

subroutine signatures aliases feature

Thread Next
From:
zdm@softvisio.net
Date:
December 10, 2015 22:05
Subject:
subroutine signatures aliases feature
Message ID:
5669F727.1050508@softvisio.net
Subroutine signatures is an excellent feature, but possibility to make
aliases is very needed.

For example:

sub ( $a, \$b, \@c ), where:

$a – will be a copy of $_[0];
$b – will be a alias for $_[1];
@c – array or aliases ($_[2] .. $#_ )

This will allow to make code much more clear and readable.

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About