2008/7/26 David Zülke <[EMAIL PROTECTED]>
> Am 22.07.2008 um 16:37 schrieb Richard Quadling:
>
> Actually, would allowing PHP to skip defaulted parameters be a better
>> facility to add?
>>
>> function foo($opt1 = Null, $opt2 = Null){}
>>
>> foo(,True);
>>
>> Hmm. Doesn't look good does it. But,
Am 22.07.2008 um 16:37 schrieb Richard Quadling:
Actually, would allowing PHP to skip defaulted parameters be a better
facility to add?
function foo($opt1 = Null, $opt2 = Null){}
foo(,True);
Hmm. Doesn't look good does it. But, useful. Having to supply the
default
value if you don't want t
Richard Quadling wrote:
> Actually, would allowing PHP to skip defaulted parameters be a better
> facility to add?
>
> function foo($opt1 = Null, $opt2 = Null){}
>
> foo(,True);
I agree that it would be ugly but possibly useful. OTOH I think it's
better to switch to named parameters in such a ca
2008/7/22 Richard Quadling <[EMAIL PROTECTED]>
>
>
> 2008/7/22 Rodrigo Saboya <[EMAIL PROTECTED]>
>
> Evan Priestley escreveu:
>>
>>> This was floated in 2003 but had weak advocation and didn't seem to come
>>> to a decisive resolution:
>>>
>>>http://marc.info/?l=php-internals&m=10668583301125