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 case anyway.

But actually it's orthogonal to the original question whether trailing
commas are allowed or not so I'd suggest starting a new thread if you
want to change the topic ;-)

- Chris

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to