Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61639 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29896 invoked from network); 23 Jul 2012 04:19:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jul 2012 04:19:51 -0000 Authentication-Results: pb1.pair.com header.from=alex.aulbach@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=alex.aulbach@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.42 as permitted sender) X-PHP-List-Original-Sender: alex.aulbach@gmail.com X-Host-Fingerprint: 209.85.160.42 mail-pb0-f42.google.com Received: from [209.85.160.42] ([209.85.160.42:60541] helo=mail-pb0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 78/A5-20357-7E0DC005 for ; Mon, 23 Jul 2012 00:19:51 -0400 Received: by pbbrp12 with SMTP id rp12so10992172pbb.29 for ; Sun, 22 Jul 2012 21:19:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=3nwSnZEv3wUBLCWzWHjCU0fl2zPHMekMiZgY5nbRJtM=; b=XP5UqCtOIiUOQeKfADWeFnNnRFagWodHU1Lt4XhcVUw/V+UBzLJQeytmjNMRtu52HK oU7llVYbbXv6rM47bdxV+M5qoCXUc9icJqH9xLLt1motMoD0GMBS11ZNYQ+bts1/toj+ ke4ZRPwR78fPBu9jeRKsKMJ40avlEFQIhbDSzSiUX2e8VZAQ3GvxF+pd2WXhCeCFTVxm p08uhbOE0UhOtuRXjNg5QLXsYWhxwSdXagMAtYXQVidWwvWfXlcC43AC501yQOeL+x/u IUTuzP5WY72ohOXxWCtM03yq+VZ22nP2xy1f0WGv1/fLXPfOcCGU/gl/kkY2vCcjmwZX mwGg== MIME-Version: 1.0 Received: by 10.68.194.201 with SMTP id hy9mr31783479pbc.69.1343017188545; Sun, 22 Jul 2012 21:19:48 -0700 (PDT) Received: by 10.68.31.7 with HTTP; Sun, 22 Jul 2012 21:19:48 -0700 (PDT) In-Reply-To: <309558619.20120723000801@cypressintegrated.com> References: <309558619.20120723000801@cypressintegrated.com> Date: Mon, 23 Jul 2012 06:19:48 +0200 Message-ID: To: Sanford Whiteman Cc: Yahav Gindi Bar Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Implicit isset in ternary operator From: alex.aulbach@gmail.com (Alex Aulbach) 2012/7/23 Sanford Whiteman : >> I think that you can compare the situation to the short if syntax ($a > $b >> ? $c : $d) > > Not sure I understand... that *is* the situation under discussion, > no? Use functions. Above case for example: _greater($a, $b, $c, $d) where function _greater($a, $b, $c, $d) { if ($a > $b) { return $c; } return $d; } My suggestion just is: At any point everybody needs one more operator for "his stuff". But that's why functions exists. -- Alex Aulbach