Hello Robert, yeah ifsetor if much better than the @-?: combination. But for 5.3 that would be all we could do. For 6 and in the long run we might do a real ifsetor. If ever we could come to a consensus... and no i don't really like to restart discussions on ifsetor at this point.
marcus Tuesday, September 11, 2007, 7:17:02 PM, you wrote: > On Tue, 2007-09-11 at 18:54 +0200, Marcus Boerger wrote: >> Hello Andrew, >> >> how about @<expression>?:<default> style? >> >> Like: $val = $myarray[$key] ?: $default; > Did you mean like: > @$val = $myarray[$key] ?: $default; > Because that's an expensive assignment since it will hit the error > handler when the index is not assigned. I thought the ifsetor system was > going to throttle undefined index notices for the left operand. > Cheers, > Rob. > -- > ........................................................... > SwarmBuy.com - http://www.swarmbuy.com > Leveraging the buying power of the masses! > ........................................................... Best regards, Marcus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php