develooper Front page | perl.perl5.porters | Postings from July 2016

Re: Concerning the smoke-me/davem/sub_argsB2 branch

Thread Previous | Thread Next
From:
Dave Mitchell
Date:
July 18, 2016 11:40
Subject:
Re: Concerning the smoke-me/davem/sub_argsB2 branch
Message ID:
20160718114020.GJ3477@iabyn.com
On Sun, Jul 17, 2016 at 08:23:56PM -0000, Father Chrysostomos wrote:
> (Yes, I know I am commenting on unfinished work.  Ignore this message
> if it seems inapposite.)
> 
> I like the idea of the new sig ops, but I think they should be named
> based on what they do, not on how they got there.
> 
> So the op names should start with arg, not sig.
> 
> It might be useful at some point to optimise 'manual' argument handling
> to those ops where possible'

I think I agree with you about the renaming, although I will point out
that the new ops are restricted in where they can be used, in that
they assume that the lexical var being created is undef/empty, non-magical
etc. In general, code like  'my $x = $_[3]' can't assume that, due to
closure tricks etc.

-- 
The optimist believes that he lives in the best of all possible worlds.
As does the pessimist.

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