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

Re: De-experimentalising "signatures"

Thread Previous | Thread Next
From:
Sam Kington
Date:
February 9, 2021 01:19
Subject:
Re: De-experimentalising "signatures"
Message ID:
854C293E-DD51-47BA-9DE9-73A9B26855F6@illuminated.co.uk
On 9 Feb 2021, at 01:14, Paul LeoNerd Evans <leonerd@leonerd.org.uk> wrote:
> On Tue, 9 Feb 2021 00:58:39 +0000
> Sam Kington <sam@illuminated.co.uk> wrote:
> 
>> I appreciate that, internally, signatures are being translated to
>> machine-generated Perl code that checks the arguments, but that’s not
>> source code that the debugger can show me so it just smiles and nods
>> and hopes that everything will work out fine. But it means that I
>> can’t tell *why*, precisely, my arguments are being rejected.
>> 
>> If this isn’t a known problem I’m happy to raise an issue on GitHub
>> or something.
> 
> That used to be the case on perl 5.20, when signatures were first added
> yes.
> 
> Ever since perl 5.26 there have been real native OP_SIG* opcodes which
> implement the signature checking. It isn't just "injected perl code"
> any more.


I’m happy and didn’t know it!

(I now need a reason to use perl 5.26 - work uses an earlier version, and for CPAN code I still think I should support 5.14.)

Sam
-- 
Website: http://www.illuminated.co.uk/



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