Hi!

If you want something similar why not something that's similar to the currently used $x = isset($x) ? $x :'x';. I don't think PHP has something that can be written as ?? currently and it would be similar to the current expression: $x = $x ?? 'x'; or $x ??= 'x'; Or if it should be a single char § chould be used - altough it looks ugly.

I'd still prefer a named operator like the new instanceof. It's much easier to read, can be found in the manual and it's meaning is clear to none-PHP programmers.

b4n, nico

Am 30.10.2005 um 00:43 schrieb Sebastian:

I still think // and //= would be the most reasonable. They involve
the least amount of syntax and // looks similar to ||

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

Reply via email to