Subject: | Allow multiple shifts |
It would be nice to be able to shift more than one argument off the
front of a sub. I'm currently doing this:
Method::Signatures::Simple::->install_methodhandler(
into => $caller,
name => 'handle',
invocant => '$self = shift; my $ctxt',
);
... which although rather hackish, does actually work. I'd much prefer
to be able to write:
Method::Signatures::Simple::->install_methodhandler(
into => $caller,
name => 'handle',
invocant => ['$self', '$ctxt'],
);
If you agree with the idea in principle, then let me know as I'm happy
to supply a patch.