Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77274 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24766 invoked from network); 16 Sep 2014 19:59:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Sep 2014 19:59:04 -0000 Authentication-Results: pb1.pair.com smtp.mail=mails@thomasbley.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=mails@thomasbley.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain thomasbley.de from 85.13.137.24 cause and error) X-PHP-List-Original-Sender: mails@thomasbley.de X-Host-Fingerprint: 85.13.137.24 dd15934.kasserver.com Received: from [85.13.137.24] ([85.13.137.24:53783] helo=dd15934.kasserver.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D2/C9-64534-68698145 for ; Tue, 16 Sep 2014 15:59:03 -0400 Received: from dd15934.kasserver.com (dd0802.kasserver.com [85.13.143.1]) by dd15934.kasserver.com (Postfix) with ESMTPSA id 919F32601F3; Tue, 16 Sep 2014 21:58:58 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SenderIP: 95.91.208.158 User-Agent: ALL-INKL Webmail 2.11 In-Reply-To: <3FDC7024-78BB-4337-B0C7-4AE4B29A146D@ajf.me> References: <20140916192842.521E22601F3@dd15934.kasserver.com><3FDC7024-78BB-4337-B0C7-4AE4B29A146D@ajf.me> To: ajf@ajf.me Cc: internals@lists.php.net Message-ID: <20140916195858.919F32601F3@dd15934.kasserver.com> Date: Tue, 16 Sep 2014 21:58:58 +0200 (CEST) Subject: Re: [PHP-DEV] [RFC] Implicit isset() in Shorthand Ternary Operator From: mails@thomasbley.de ("Thomas Bley") Sorry, I mean to implement coalesce() as a token like isset() ? Regards, Thomas Andrea Faulds wrote on 16.09.2014 21:30: > > On 16 Sep 2014, at 20:28, Thomas Bley wrote: > >> What are the pros and cons of a new operator vs. a new function? For example, >> MySQL has a coalesce() function: >> http://dev.mysql.com/doc/refman/5.6/en/comparison-operators.html#function_coalesce > > A function is useless as it wouldn’t stop you getting E_NOTICEs. > > -- > Andrea Faulds > http://ajf.me/ > > > >