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

Re: Proposal: Named parameters for 5.12

Thread Previous | Thread Next
From:
Florian Ragwitz
Date:
December 18, 2008 10:59
Subject:
Re: Proposal: Named parameters for 5.12
Message ID:
20081218165731.GB2000@perldition.org
On Thu, Dec 18, 2008 at 10:55:38AM +0100, Johan Vromans wrote:
> Could this be enhanced to turn
>
>    sub square ($num) : method {
>
> into
>
>    sub square {
>      my ($self, $num) = @_;

It could.

> (Although I'd prefer "method square ($num){" )

So do I. That's what MooseX::Method::Signatures (the module that
implements the method keyword for MooseX::Declare),
Method::Signatures::Simple and Method::Signatures is for.


-- 
BOFH excuse #60:
system has been recalled

Thread Previous | 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