Skip Menu |

This queue is for tickets about the Function-Parameters CPAN distribution.

Report information
The Basics
Id: 93337
Status: resolved
Priority: 0/
Queue: Function-Parameters

People
Owner: Nobody in particular
Requestors: perl [...] toby.ink
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: 1.0601



Subject: Wishlist for Perl 5.20 signature compatibility: allow bare sigils
For example: method foo ($, $y) { ... } This should be roughly equivalent to: sub foo { my $self = shift; my $y = $_[1]; } Note that $_[0] still exists in the @_ array but hasn't been assigned to any lexical. Bare sigils `@` and `%` should be allowed as slurpies. In the case of `%` will die if the remaining argument list is not even-sized.
On Tue Feb 25 07:04:48 2014, TOBYINK wrote: Show quoted text
> For example: > > method foo ($, $y) { ... } > > This should be roughly equivalent to: > > sub foo { > my $self = shift; > my $y = $_[1]; > } > > Note that $_[0] still exists in the @_ array but hasn't been assigned > to any lexical. > > Bare sigils `@` and `%` should be allowed as slurpies. In the case of > `%` will die if the remaining argument list is not even-sized.
Hmm, interesting idea. I'll have to think about how that interacts with parameter list introspection, though.