What we basically settled on was to use this syntax (as a new language construct):
$x = ifsetor(mixed variable, mixed default);
Before it gets forgotten: I still think that $x = ifsetor(mixed var, mixed var [, ...]); with expressions in all parts is the way to go.
Example usage: $a = ifsetor($_REQUEST['x'], $db->get('x'), 'default_x');
This needs some work to disable warnings because of unset values inside the ifsetor() but would provide a lot of value.
And I also think that the name ifsetor has to be reevaluated :-)
- Chris
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php