Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77310 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77630 invoked from network); 18 Sep 2014 13:35:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Sep 2014 13:35:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.215.10 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.215.10 mail.experimentalworks.net Received: from [217.114.215.10] ([217.114.215.10:42669] helo=mail.experimentalworks.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 50/82-63310-1AFDA145 for ; Thu, 18 Sep 2014 09:35:29 -0400 Received: by mail.experimentalworks.net (Postfix, from userid 1003) id 8E82C4223C; Thu, 18 Sep 2014 15:35:37 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on km31408.keymachine.de X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=ALL_TRUSTED autolearn=unavailable version=3.3.2 X-Spam-HAM-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP Received: from [192.168.2.31] (ppp-93-104-8-123.dynamic.mnet-online.de [93.104.8.123]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: johannes@schlueters.de) by mail.experimentalworks.net (Postfix) with ESMTPSA id 176CB42239; Thu, 18 Sep 2014 15:35:28 +0200 (CEST) To: Andrea Faulds Cc: Pete Boere , Gwynne Raskind , PHP internals In-Reply-To: References: <54E82419-931D-4F9E-8115-175EA1BDC970@darkrainfall.org> Content-Type: text/plain; charset="UTF-8" Date: Thu, 18 Sep 2014 15:34:08 +0200 Message-ID: <1411047248.3023.78.camel@guybrush> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] [RFC] Implicit isset() in Shorthand Ternary Operator From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) On Thu, 2014-09-18 at 12:41 +0100, Andrea Faulds wrote: > We could use a function *syntax*, though, but I don’t like this idea. > coalesce() and ifsetor() are both ugly to me, and it’s not super > obvious what they do: > > var_dump(coalesce($_GET[‘foobar’], 3)); > > vs. > > var_dump($_GET[‘foobar’] ?? 3); > > ?? also has the advantage of being shorter. > If you don't now what ?? does it's far from obvious. coalesce is a term that can be put into google and will deliver results. johannes