2012/7/23 Sanford Whiteman <[email protected]>:
>> I think that you can compare the situation to the short if syntax ($a > $b
>> ? $c : $d)
>
> Not sure I understand... that *is* the situation under discussion,
> no?
Use functions. Above case for example:
_greater($a, $b, $c, $d)
where
function _greater($a, $b, $c, $d)
{
if ($a > $b) {
return $c;
}
return $d;
}
My suggestion just is: At any point everybody needs one more operator
for "his stuff". But that's why functions exists.
--
Alex Aulbach
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php