Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51971 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18865 invoked from network); 21 Apr 2011 07:35:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Apr 2011 07:35:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.210.170 mail-iy0-f170.google.com Received: from [209.85.210.170] ([209.85.210.170:52917] helo=mail-iy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 79/00-18586-E4EDFAD4 for ; Thu, 21 Apr 2011 03:35:42 -0400 Received: by iyb12 with SMTP id 12so1527347iyb.29 for ; Thu, 21 Apr 2011 00:35:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=lk9gxzQ4fy0ua2rniq71By3IRAnDO3D33G/VQwGhl0o=; b=XrWB2Xbb92ChVXwmmWaFBA7hZYgyV3RWkUZz8DWxPwyUlWiAxIwMF5NUZM0d9Ry+vi m/6Gdvud4+nF9imXf3Sqs0+vVApbGeO0+MST2UV66L67iuvhRZFc446xdy8GQzsbtZsq ILI16XmgtpevLDjyCfK/b2whAzcnFVasIbcdk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=k7KdJjjuUczvLFNynEnwXW/cLKVHUGIfQ9hjpUCNKGaOmb2lCpyST8xGvi8zAQPYa+ pEqUzv0rLNXS7uMvtVjtxgP23TKFhtZxq+Nxy2uV8d19hy469ShTvoGIe8+UAsdGZo+J 51aZlgfdJ2tQZjJg6wsYzz0iPzeYLEroYzwK0= MIME-Version: 1.0 Received: by 10.42.130.200 with SMTP id w8mr5143150ics.219.1303371340188; Thu, 21 Apr 2011 00:35:40 -0700 (PDT) Sender: tyra3l@gmail.com Received: by 10.231.199.197 with HTTP; Thu, 21 Apr 2011 00:35:39 -0700 (PDT) In-Reply-To: <4DAF8105.5060105@gmail.com> References: <4D9E96B6.6060401@lerdorf.com> <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> Date: Thu, 21 Apr 2011 09:35:39 +0200 X-Google-Sender-Auth: JElkUL2uSeuDmywE65VF0LbLvI4 Message-ID: To: David Muir Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=90e6ba2124f5be0ca704a168c973 Subject: Re: [PHP-DEV] Implicit isset/isempty check on short-ternary operator From: info@tyrael.hu (Ferenc Kovacs) --90e6ba2124f5be0ca704a168c973 Content-Type: text/plain; charset=UTF-8 > > > 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 > > Cheers, > David > > It was discussed in a separate thread. generally it would do the same as in SQL, return the first non-null value from the arguments. and it wouldn't introduce a new syntax, but I guess that it should be added as a language construct. Tyrael --90e6ba2124f5be0ca704a168c973--