Re: [PHP-DEV] Modify language grammar to allow commas to skip defaulted parameters.

2008-07-28 Thread Richard Quadling
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,

Re: [PHP-DEV] Modify language grammar to allow commas to skip defaulted parameters.

2008-07-26 Thread David Zülke
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

Re: [PHP-DEV] Modify language grammar to allow commas to skip defaulted parameters.

2008-07-22 Thread Christian Schneider
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

[PHP-DEV] Modify language grammar to allow commas to skip defaulted parameters.

2008-07-22 Thread Richard Quadling
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