Re: [PHP-DEV] Re: Allow default parameters before non-default ones?

2021-12-09 Thread Deleu
On Thu, Dec 9, 2021 at 6:48 AM Mark Randall wrote: > On 09/12/2021 05:22, André Hänsel wrote: > > This is very useful because I can add an optional parameter to a function > > and prevent users of my function from using the parameter in a positional > > way. This way I don't have to make a

[PHP-DEV] Re: Allow default parameters before non-default ones?

2021-12-08 Thread Mark Randall
On 09/12/2021 05:22, André Hänsel wrote: This is very useful because I can add an optional parameter to a function and prevent users of my function from using the parameter in a positional way. This way I don't have to make a compatibility promise to never change the position of this parameter.