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

Re: PSC #049 2022-01-07

Thread Previous | Thread Next
Ricardo Signes
January 16, 2022 19:15
Re: PSC #049 2022-01-07
Message ID:
On Sun, Jan 16, 2022, at 6:23 AM, demerphq wrote:
> Personally I cant understand why if perl can validate the arity of a sub we cannot provide a mechanism to determine what that is at a code level.

I don't mind the existence of a "Sub::Util::arity_of" or something.  (I'm not sure what return would be best, since it needs to handle:
 * undeclared
 * fixed number
 * n or more
 * n or more, but even/odd)
What I don't want is to change the behavior we have out of the box, or to further delay shipping this based on something that can be added in the future.

> I am going to CC him on this, he can yell at me if he wants. :-)

I mean, I read p5p, which got all the previous messages, too. 😉  I will only yell if you spill my beer.

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