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

Re: De-experimentalising "signatures"

Thread Previous | Thread Next
From:
Paul "LeoNerd" Evans
Date:
February 9, 2021 01:14
Subject:
Re: De-experimentalising "signatures"
Message ID:
20210209011410.61c630ac@shy.leonerd.org.uk
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.

-- 
Paul "LeoNerd" Evans

leonerd@leonerd.org.uk      |  https://metacpan.org/author/PEVANS
http://www.leonerd.org.uk/  |  https://www.tindie.com/stores/leonerd/

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