Re: keyword arguments?

From: Date: Wed, 23 Jun 2004 19:41:39 +0000
Subject: Re: keyword arguments?
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-10735@lists.php.net to get a copy of this message
Hi Daniel, named paramters should only be followed by named paramters - like with default values. So one can first "fill" the unnamed once and then some (or all) of the named once. But remembering the last discussion on this idea I don't think this will be added... johannes Daniel Crookston wrote: > Actually, that would be acceptable, since you lose the bulk of array(). > The only thing that remains a problem is that if you add another > (non-named) parameter, you still need to worry about the relative > positions in all of your functions. Now that I think about it, that's > actually a bigger complaint for me than having to use array(). > > Thoughts? Comments? Flames? > > Daniel > > P.S. Thank you for the link to the patches :) > >> --------------------------------------------------------------------- >> >> I'm still in favor of an approach we are using here where you can pass >> associative arrays without array(): > > <snip all else>

« previous php.internals (#10735) next »