For the assign-if-not-set operator, I like the idea of:

$foo ?= 'bar';

? implies a condition, and the = immediately following will raise a parse 
error in older versions.

There's admittedly potential for confusion with the ternary operator, but 
since that's most commonly used for conditional assignment I think the 
association isn't all negative.

Arpad

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to