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

Re: De-experimentalising "signatures"

Thread Previous | Thread Next
Sam Kington
February 9, 2021 01:19
Re: De-experimentalising "signatures"
Message ID:
On 9 Feb 2021, at 01:14, Paul LeoNerd Evans <> wrote:
> On Tue, 9 Feb 2021 00:58:39 +0000
> Sam Kington <> 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.)


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About