Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61711 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66865 invoked from network); 24 Jul 2012 17:55:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jul 2012 17:55:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=swhitemanlistens-software@cypressintegrated.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=swhitemanlistens-software@cypressintegrated.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain cypressintegrated.com designates 69.28.242.152 as permitted sender) X-PHP-List-Original-Sender: swhitemanlistens-software@cypressintegrated.com X-Host-Fingerprint: 69.28.242.152 rproxy1-a.cypressintegrated.com Received: from [69.28.242.152] ([69.28.242.152:1812] helo=rproxy1-a.cypressintegrated.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 32/00-01267-481EE005 for ; Tue, 24 Jul 2012 13:55:16 -0400 Received: from localhost ([192.168.87.152]) by rproxy1-a.cypressintegrated.com (Brand New Heavy v1.0) with ASMTP id IYB03113 for ; Tue, 24 Jul 2012 13:55:13 -0400 Date: Tue, 24 Jul 2012 13:54:32 -0400 Reply-To: Sanford Whiteman X-Priority: 3 (Normal) Message-ID: <194843414.20120724135432@cypressintegrated.com> To: Galen Wright-Watson In-Reply-To: References: <309558619.20120723000801@cypressintegrated.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Implicit isset in ternary operator From: swhitemanlistens-software@cypressintegrated.com (Sanford Whiteman) > My feeling is that either more complex expressions for operators with an > implicit "isset" or "!empty" shouldn't work, or that they should cause > notices. That's exactly why I think we're going in the wrong direction by speaking of an "alternate ternary" operator. You're saying the basic ternary is (expr1) ? (expr2) : (expr3) But the only notice-free alternate is (var) ?? (expr2) : (expr3) This alternate is just going to cause confusion as it has a different, more limited signature. -- S.