Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11071 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74544 invoked by uid 1010); 10 Jul 2004 12:46:39 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 74415 invoked from network); 10 Jul 2004 12:46:38 -0000 Received: from unknown (HELO milton.schell.de) (217.160.72.35) by pb1.pair.com with SMTP; 10 Jul 2004 12:46:38 -0000 Received: (qmail 17570 invoked by uid 501); 10 Jul 2004 12:46:37 -0000 Received: from unknown (HELO fragrance) (217.160.72.104) by kdserv.de with SMTP; 10 Jul 2004 12:46:37 -0000 Date: Sat, 10 Jul 2004 14:46:37 +0200 (CEST) X-X-Sender: sas@fragrance To: Marcus Boerger cc: Christian Schneider , Rasmus Lerdorf , Marc Richards , internals@lists.php.net In-Reply-To: <339643899.20040710142323@marcus-boerger.de> Message-ID: References: <5.1.0.14.0.20040707203931.02fa6200@mail.ionzoft.com> <40ED64A0.7050305@cschneid.com> <20040708151952.92187.qmail@pb1.pair.com> <20040708215205.23281.qmail@pb1.pair.com> <20040708222005.4329.qmail@pb1.pair.com> <20040708233326.73283.qmail@pb1.pair.com> <40EFACFB.4030009@cschneid.com> <339643899.20040710142323@marcus-boerger.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: [PHP-DEV] what happened to that new isset() like language From: sascha@schumann.cx (Sascha Schumann) >>> 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" Looks like you guys misunderstand (my reply was to Rasmus regarding the don't-make-up-new-operators guideline). My original proposal (which dates back a couple of years) was adding GCC semantics to PHP's tertiary operator. The isset-thread is a separate issue. - Sascha