On Tue, 2004-05-11 at 14:23, Andi Gutmans wrote: > At 11:44 AM 5/11/2004 +0200, Timm Friebe wrote: [...] > >Will this affect optional arguments? I.e., will the following still > >work? [...] > Nope, why would it work? If we make the type hint strict (which I think we > should) then you can't define it to NULL. > Doing so would be kind of inconsistent.
Aren't optional parameters and allowing NULL for typehints two different pairs of shoes? At least passing NO parameters and NULL as parameter is easily distinguishable in userland: $ php -r 'function test() { var_dump(func_num_args()); } test();' int(0) $ php -r 'function test() { var_dump(func_num_args()); } test(NULL);' int(1) - Timm -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php