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

From: Date: Sat, 10 Jul 2004 12:23:23 +0000
Subject: Re: what happened to that new isset() like language
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.internals 
Request: Send a blank email to internals+get-11067@lists.php.net to get a copy of this message
Hello Christian, Saturday, July 10, 2004, 10:46:51 AM, you wrote: > 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 Yeah all good reasons against. Maybe i could add that GCC's ?: is different from the intended behavior because we are doing "isset($a) ? $a : $b" in contrast to "$a ? $a : $b" Best regards, Marcus mailto:helly@php.net

« previous php.internals (#11067) next »