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

Re: Proposal: Named parameters for 5.12

Thread Previous | Thread Next
From:
Vincent Pit
Date:
December 5, 2008 14:42
Subject:
Re: Proposal: Named parameters for 5.12
Message ID:
4939AEF9.2030500@profvince.com

> 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
>     http://search.cpan.org/~chips/Perl6-Subs-0.05/lib/Perl6/Subs.pm
>   

I think that the key feature would be aliasing of parameters (even as an
optional trait).
Maybe I'm a little naive but without it, how pretty the new syntax could
be, I don't think it would be enough for experienced users to justify
the break in backward compatibility.


Vincent.

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