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

From: Date: Sat, 10 Jul 2004 08:46:51 +0000
Subject: Re: what happened to that new isset() like language
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to internals+get-11062@lists.php.net to get a copy of this message
Sascha Schumann wrote:
    This rule would favor the "a ? : b" notation - which has
    been supported by GCC for at least five years.
My personal reasons against ?: : - It's non-standard and not well known even though GCC supports it. - It's hard to look up. - It's easily confused with $a ? $b : $c; - It's ugly (-:C I'd even prefer the Perl 6 err operator over it which is '//' or 'err' (low precedence) but then // is already the C++-style comment which I wish we hadn't introduced to PHP to start with :-) But unless convinced otherwise I think a pseudo-function like coalesce() is the way to go. - Chris

« previous php.internals (#11062) next »