On Sat, 22 Jan 2022 02:20:21 +0800 Tom Molesworth via perl5-porters <perl5-porters@perl.org> wrote: > Your eval workaround assumes that the directly-called sub is the only > possible thing which can throw the exception - what if that's > triggered by a sub further down? > > I ended up writing > https://metacpan.org/dist/Acme-Signature-Arity/view/lib/Acme/Signature/Arity.pod > as a proof-of-concept API, but would hope that core Perl will expose > some sort of arity inspection in due course. Ignoring this > library-extensibility use-case while simultaneously promoting > signatures as a complete replacement for @_-based subs seems less > than ideal to me. Ah; I just addressed both of those points in my reply just now ;) -- 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