Simplify Subroutine Signatures

Do you need simple subroutine signatures?

signatures default behavior is simple.

It is simple alias.

# $foo, $bar
sub foo ($foo, $bar) { ... }
sub foo {
  my ($foo, $bar) = @_;
}
# $foo, @bar
sub foo ($foo, @bar) { ... }
sub foo {
  my ($foo, @bar) = @_;
}
# $foo, %bar
sub foo ($foo, %bar) { ... }
sub foo {
  my ($foo, %bar) = @_;
}

I implement simple signature in perl5 branch instead of CPAN module.

Simplify subroutine signatures(GitHub)

This work well. Is it good?


3 Comments

I think it is great idea idea. Though I would have suggested extending the existing module, rather than forking Perl ;). The issue, I guess, always is that one doesn't want many conflicting incompatible branches.

Leave a comment

About Yuki Kimoto

user-pic I'm Perl Programmer. I LOVE Perl. I want to contribute Perl community and Perl users.