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 6, 2008 10:33
Subject:
Re: Proposal: Named parameters for 5.12
Message ID:
20081205222438.GG4215@perldition.org
Chip Salzenberg wrote:
> What say we make named parameters part of Perl 5.12?  (Finally?!)
> 
> A quick check of CPAN suggests that Schwern's code in Method::Signature
> defines the state of this particular art.  I think we could make a less
> seam-y approach in the core, but the feature set looks really good;
> 
>     http://search.cpan.org/~mschwern/Method-Signatures-20081028/lib/Method/Signatures.pm
> 
> Meanwhile, some older stuff for comparison includes:
> 
>     http://search.cpan.org/~flora/signatures-0.02/lib/signatures.pm

signatures.pm isn't exactly old. It's been first uploaded a few weeks ago and
uses techniques similar to Devel::Declare (and therefor Method::Signatures,
MooseX::Method::Signatures, etc) and no source filters.

Also it already has everything needed to implement named parameters for 5.8 and
above. Just subclass and supply your own proto_unwrap method.


-- 
BOFH excuse #431:
Borg implants are failing

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