There is one case though, which can still not be implemented (probably?) by
users, and that's a coalesce function, since that would require fetching
values by using func_get_args(), which doesn't return references.
So the only way I could imagine implementing such coalesce() function would
be like this:
function coalesce(&$a=null, &$b=null, &$c=null, &$d=null, &$e=null)
{
if (isset($a)) return $a;
if (isset($b)) return $b;
if (isset($c)) return $c;
if (isset($d)) return $d;
return $e;
}
Which I think is pretty hideous. But I can absolutely live with a lack of
coalesce() since that function wouldn't be as extensively used as ifsetor().
As far as I'm concerned on ifsetor() though: -18927.
But then again, who am I to make such a statement? :)
Ron
"Zeev Suraski" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
....
> I fully agree with everyone else that wondered why we're discussing
> this. People can implement this on their own, the way they want it, with
> an assignment or without it, using empty() or isset(), etc.
>
> Zeev
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php