develooper Front page | perl.perl5.porters | Postings from January 2022

Re: arity checking (was Re: PSC #049 2022-01-07)

Thread Previous | Thread Next
From:
demerphq
Date:
January 21, 2022 14:15
Subject:
Re: arity checking (was Re: PSC #049 2022-01-07)
Message ID:
CANgJU+UR79=1O2jf2qXF3JB2m9+TL=oHzMCzvQ5Sopns4T9J+Q@mail.gmail.com
On Fri, 21 Jan 2022 at 14:12, Nicholas Clark <nick@ccl4.org> wrote:

> Really you want to know you have a problem *before* you call the callback
> (ie what Yves wrote - you want to be able to flag a problem at object
> construction time, which might well be program startup. Not fail at
> runtime,
> unattended, into a log file or even /dev/null)
>

So am i correct in understanding that you would be ok with exposing an API
to check the subs arity signature? If so then I'll try to think up
one (others could too).

cheers
Yves

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