develooper Front page | perl.perl5.porters | Postings from February 2015

Re: OP_SIGNATURE

Thread Previous
From:
Dave Mitchell
Date:
February 22, 2015 22:03
Subject:
Re: OP_SIGNATURE
Message ID:
20150222220307.GC28599@iabyn.com
On Sun, Feb 22, 2015 at 09:15:10PM -0000, Father Chrysostomos wrote:
> Dave Mitchell wrote:
> > Since this is an internal implementation detail change to an experimental
> > feature, I'm hoping that it will be non-controversial to merge it into
> > bleed once it passes smoking.
> 
> I have only one objection.  You have added a new CVf_HASSIG flag that
> does nothing.  Ideally, since signatures affect solely the function's
> run-time effects, sub f ($a=1,@) {} should be indistinguishable from
> sub f { my $a = @_ >= 1 ? $_[0] : 1; }.
> 
> I suggest not adding that flag.

Hmm, I think I originally added it because it would help with deparsing,
but ended up doing deparsing a different way.

I'm not really bothered either way, and unless anyone thinks it might be
useful, I'm happy to remove it again.

-- 
I thought I was wrong once, but I was mistaken.

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About