Re: [PHP-DEV] Argument with default value

2020-03-15 Thread Stanislav Malyshev
Hi! > As it's arisen on the list again, I've written a note detailing my > view of the previous discussion: > > https://github.com/Danack/RfcCodex/blob/master/explicit_defaults.md As the author of that RFC, I am not particularly sure how it can be "improved", as main argument from what I underst

Re: [PHP-DEV] Argument with default value

2020-03-15 Thread Dan Ackroyd
On Sat, 14 Mar 2020 at 15:27, David Rodrigues wrote: > > I would like to propose the idea of having a keyword that can be used to > use the default value of a parameter, As it's arisen on the list again, I've written a note detailing my view of the previous discussion: https://github.com/Danack/

Re: [PHP-DEV] Argument with default value

2020-03-15 Thread Craig Duncan
> > On Sat, 14 Mar 2020 at 15:53, Christoph M. Becker > wrote: > >> On 14.03.2020 at 16:27, David Rodrigues wrote: >> >> > I would like to propose the idea of having a keyword that can be used to >> > use the default value of a parameter, without necessarily having to know >> > it. >> >> FWIW, thi

[PHP-DEV] Argument with default value

2020-03-14 Thread David Rodrigues
Hello! I would like to propose the idea of having a keyword that can be used to use the default value of a parameter, without necessarily having to know it. Since PHP is not a strong typing language, the default values they use are quite mixed, and it is difficult to predict each without knowing t