Re: Optional parameters without initializer

From: Date: Tue, 27 Nov 2018 13:27:57 +0000
Subject: Re: Optional parameters without initializer
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969387091@lists.php.net to get a copy of this message
On Tue, 27 Nov 2018 at 12:56, Christoph M. Becker <cmbecker69@gmx.de> wrote: > For a few of these cases it seems appropriate to > split the function signature (for instance, like done for > array_search()[1]), but for others (for instance, string parameters > which default to C NULL)? > Hi Christoph, I know this doesn't answer your immediate question, but would it be worth seeing if these can be changed in the implementation itself, so that they *do* have a PHP-representable default? Since there is no "default" keyword, it sounds like a bug to have "no argument" mean something that cannot be represented by any valid input. Regards, -- Rowan Collins [IMSoP]

« previous php.doc (#969387091) next »