Front page | perl.perl5.porters |
Postings from January 2022
Re: PSC #049 2022-01-07
Thread Previous
|
Thread Next
From:
Darren Duncan
Date:
January 16, 2022 02:46
Subject:
Re: PSC #049 2022-01-07
Message ID:
b3a40131-0ed1-858d-7704-8651b24b52ac@darrenduncan.net
On 2022-01-15 4:43 p.m., Ricardo Signes wrote:
> On Sat, Jan 15, 2022, at 6:02 PM, Yuki Kimoto wrote:
>> Is it possible to include an arity check discussion?
>>
>> The arity check discussion seems to be ignored.
>
> http://markmail.org/message/e7lvyan2ctd24cun
>
> *This topic has been discussed numerous times over the last seven years, and I'm
> not going through it again. This will be my last reply to any message on the
> topic of changing the strict arity checking of subroutine signatures.**
> *
I for one also support keeping the existing strict arity checking in place for
signatures.
If one is using signatures then that usually implies that the arguments they
explicitly declare are the arguments they expect and that someone calling it in
any other way is making an error.
When a routine writer wants to allow a variable number of arguments, there is a
means provided to declare that explicitly in signatures.
And otherwise routine writers who want the old-style least strict behavior can
still get it for a sub by not using signatures and using @_ instead.
-- Darren Duncan
Thread Previous
|
Thread Next