Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51986 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30093 invoked from network); 23 Apr 2011 02:53:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Apr 2011 02:53:58 -0000 Authentication-Results: pb1.pair.com smtp.mail=mail_ben_schmidt@yahoo.com.au; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=mail_ben_schmidt@yahoo.com.au; sender-id=unknown; domainkeys=good Received-SPF: error (pb1.pair.com: domain yahoo.com.au from 98.139.91.210 cause and error) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: mail_ben_schmidt@yahoo.com.au X-Host-Fingerprint: 98.139.91.210 nm16-vm0.bullet.mail.sp2.yahoo.com Received: from [98.139.91.210] ([98.139.91.210:23454] helo=nm16-vm0.bullet.mail.sp2.yahoo.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5B/92-02200-34F32BD4 for ; Fri, 22 Apr 2011 22:53:56 -0400 Received: from [98.139.91.63] by nm16.bullet.mail.sp2.yahoo.com with NNFMP; 23 Apr 2011 02:53:53 -0000 Received: from [98.139.91.4] by tm3.bullet.mail.sp2.yahoo.com with NNFMP; 23 Apr 2011 02:53:53 -0000 Received: from [127.0.0.1] by omp1004.mail.sp2.yahoo.com with NNFMP; 23 Apr 2011 02:53:53 -0000 X-Yahoo-Newman-Id: 616884.25857.bm@omp1004.mail.sp2.yahoo.com Received: (qmail 56343 invoked from network); 23 Apr 2011 02:53:53 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.au; h=DKIM-Signature:Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=cLk8qoHxsijN8FDwQH1krnz8kx53Dtc1BmKYjC8sdp9hneGdfcFhlT4WgWx86lgzDOqqUygpW5o1S4UoP0aXLb4V+ZaJOlnLRFGi2AcJH9g1Gms3vaM7S41ga2JIkmywL+dIpwZmNZRHKzmAxWQqXdO2Bd59RXWstbvvxDg83bw= ; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.au; s=s1024; t=1303527233; bh=/pY8S2ng3zap0LexUBcscIp8ROI4oAkbfZJJQcb4jD8=; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=bNly3Xx9UUENlgMKnvCIbz9hNkhUGARvBewq9GPRpOyrTfkxue+2mx3wdNe+ORSJBxCFJTpe8M5bTlyOANXFfwV8pg3G+FnwXMOlArYyfWY2BI3wNoqf332nEE2CpWuuD3wt0pFn83Uk9Tme4USXTOD2yaTRWLMQjfFmL/O3gg4= Received: from thought.local (mail_ben_schmidt@124.148.147.145 with plain) by smtp141.mail.mud.yahoo.com with SMTP; 22 Apr 2011 19:53:52 -0700 PDT X-Yahoo-SMTP: enFMnPSswBAexaHyzgobwuUTrYOhZdJ0KRA2SjA- X-YMail-OSG: 0PzBwIoVM1nWQyXt1g6sMtZ35EEfIDpo9PA557Yr8yrwfEv 5b0TNEpzeAanbH61arXexPo2oMoruPYEtH4QvHltZ7v56pVnosaqTMcMxiwi 4ZL6xeRHYVlE8yD_TERCA9JlR4eiXY2g7R3shZl.hM1FMGWH.jJ.xgfHDbg9 cEc.kH1Emnojr0h.h_PCq50GN6tqe.O9m4wCkEQfH.xtNfDQ706tE6Uxsvz7 zkQ6lmSHqRwH1dC.FbIMoyH7PtNBhJwK87wp_cLSFuOlu7mvlZANz7WP3zda DAUtingO04GkKCizmxSR3866MzOzL_Z8fwezdCbi6KPkcCkmQytVCBVRaJQi P6Toh_eF8FMhJ.Rrp6Pw3Vrc- X-Yahoo-Newman-Property: ymail-3 Message-ID: <4DB23F50.4090405@yahoo.com.au> Date: Sat, 23 Apr 2011 12:54:08 +1000 User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 ThunderBrowse/3.3.5 MIME-Version: 1.0 To: internals@lists.php.net References: <718216446.20110408143441@cypressintegrated.com> <4DA0E71C.9030008@gmail.com> <4DA63ED8.4080402@yahoo.com.au> <4DA6F2BC.10706@yahoo.com.au> <4DA6FB03.9040404@yahoo.com.au> <4DAF8105.5060105@gmail.com> In-Reply-To: <4DAF8105.5060105@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Implicit isset/isempty check on short-ternary operator From: mail_ben_schmidt@yahoo.com.au (Ben Schmidt) > What does coalesce() do? > If I'm guessing correctly, would proposal #2 that Rune Kaagaard put up > solve that for you? > https://gist.github.com/909711 Rune's proposal #2, extending func_get_arg(), is impossible to implement/would not work. His proposal #3, which is more like coalesce(), suffers from the drawbacks/problems of coalesce() which I discussed in a recent post (though you can see Rune has some workarounds/hacks to deal with some of the problems). IMHO, his proposal #1 is the only real contender. However, I believe it conflates two problems which others do not want conflated. He briefly dismisses the [?] syntax, because it addresses what he sees as a different problem. However, that different problem is really part of his problem. My contention is that the two parts of his problem are better solved independently (notice-suppression separately to finding an isset/!empty value), and furthermore that one of the two versions of his problem is already partially solved and should be reused, not reinvented (existing ternary operator for a !empty check). Ben.