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

Re: Proposal: Named parameters for 5.12

Thread Previous | Thread Next
From:
Chip Salzenberg
Date:
December 18, 2008 20:57
Subject:
Re: Proposal: Named parameters for 5.12
Message ID:
20081219045720.GD5505@tytlal.topaz.cx
On Thu, Dec 18, 2008 at 02:07:23PM +0000, Tim Bunce wrote:
> On Thu, Dec 18, 2008 at 10:55:38AM +0100, Johan Vromans wrote:
> > Florian Ragwitz <rafl@debian.org> writes:
> > > http://search.cpan.org/~flora/signatures-0.02/lib/signatures.pm
> > 
> > Could this be enhanced to turn
> >    sub square ($num) : method { 
> > into
> >    sub square { my ($self, $num) = @_;
> > (Although I'd prefer "method square ($num){" )

Personally, I'd like to support both, but I'm wierd like that.

> Either way, shouldn't we be aiming to match the syntax to the semantics
> in a way that's consistent with Perl 6? In other words require "is copy":
>      sub square ($num is copy) : method { 

Well ... that depends on the feasibility of read-only aliases, which I have
yet to explore.
-- 
Chip Salzenberg   twitter:chipsalz
"UTOPIA PLANITIA IS IN ORBIT is the new HAN SHOT FIRST" - Crisper Than Thou

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