Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46151 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42292 invoked from network); 21 Nov 2009 21:40:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Nov 2009 21:40:04 -0000 Authentication-Results: pb1.pair.com smtp.mail=mls@pooteeweet.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=mls@pooteeweet.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pooteeweet.org from 88.198.8.16 cause and error) X-PHP-List-Original-Sender: mls@pooteeweet.org X-Host-Fingerprint: 88.198.8.16 bigtime.backendmedia.com Linux 2.6 Received: from [88.198.8.16] ([88.198.8.16:55556] helo=bigtime.backendmedia.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1C/7A-13841-13E580B4 for ; Sat, 21 Nov 2009 16:40:04 -0500 Received: from localhost (unknown [127.0.0.1]) by bigtime.backendmedia.com (Postfix) with ESMTP id 5F0124144059; Sat, 21 Nov 2009 21:41:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at backendmedia.com Received: from bigtime.backendmedia.com ([127.0.0.1]) by localhost (bigtime.backendmedia.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4kDUBdcSFfyv; Sat, 21 Nov 2009 22:41:04 +0100 (CET) Received: from [192.168.0.151] (217-162-131-234.dclient.hispeed.ch [217.162.131.234]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mls@pooteeweet.org) by bigtime.backendmedia.com (Postfix) with ESMTP id E0F334144009; Sat, 21 Nov 2009 22:41:03 +0100 (CET) Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii In-Reply-To: <3982afa90911211329k374ae22co35517e67d7e40f0f@mail.gmail.com> Date: Sat, 21 Nov 2009 22:39:53 +0100 Cc: Rasmus Lerdorf , Alban , internals@lists.php.net Content-Transfer-Encoding: 7bit Message-ID: <0D57ED30-E1A5-4F82-9FAE-AB515FB8CAFF@pooteeweet.org> References: <17.CC.25743.CB6770B4@pb1.pair.com> <84B23126-8011-48DA-B65A-750AA9C5B57E@pooteeweet.org> <4B082F9E.6080703@lerdorf.com> <3982afa90911211329k374ae22co35517e67d7e40f0f@mail.gmail.com> To: Dante Lorenso X-Mailer: Apple Mail (2.1077) Subject: Re: [PHP-DEV] suggestion about ternary operator From: mls@pooteeweet.org (Lukas Kahwe Smith) On 21.11.2009, at 22:29, Dante Lorenso wrote: > I would love to restate my recommendation for the function "filled". > Which is the opposite of "empty". Filled would accept a variable > number of arguments and return the first where empty evaluates as > false. > > Like empty, filled would not throw notices for undefined variables. > This is not the same as the ifsetor debate because filled is opposite > empty and cares not about isset. did you even read the RFC? regards, Lukas Kahwe Smith mls@pooteeweet.org