Re: what happened to that new isset() like language

From: Date: Sat, 29 Oct 2005 22:57:26 +0000
Subject: Re: what happened to that new isset() like language
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-19832@lists.php.net to get a copy of this message
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 ||


« previous php.internals (#19832) next »