Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51875 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24564 invoked from network); 12 Apr 2011 09:22:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Apr 2011 09:22:09 -0000 Authentication-Results: pb1.pair.com header.from=glopes@nebm.ist.utl.pt; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=glopes@nebm.ist.utl.pt; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain nebm.ist.utl.pt from 193.136.128.21 cause and error) X-PHP-List-Original-Sender: glopes@nebm.ist.utl.pt X-Host-Fingerprint: 193.136.128.21 smtp1.ist.utl.pt Linux 2.6 Received: from [193.136.128.21] ([193.136.128.21:37807] helo=smtp1.ist.utl.pt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6A/62-12062-BB914AD4 for ; Tue, 12 Apr 2011 05:22:06 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp1.ist.utl.pt (Postfix) with ESMTP id BD33C700043B for ; Tue, 12 Apr 2011 10:22:00 +0100 (WEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at ist.utl.pt Received: from smtp1.ist.utl.pt ([127.0.0.1]) by localhost (smtp1.ist.utl.pt [127.0.0.1]) (amavisd-new, port 10025) with LMTP id frzagLkvVsf2 for ; Tue, 12 Apr 2011 10:22:00 +0100 (WEST) Received: from mail2.ist.utl.pt (mail.ist.utl.pt [IPv6:2001:690:2100:1::8]) by smtp1.ist.utl.pt (Postfix) with ESMTP id 868817000428 for ; Tue, 12 Apr 2011 10:21:59 +0100 (WEST) Received: from clk-0081.clk-domain (unknown [85.139.253.17]) (Authenticated sender: ist155741) by mail2.ist.utl.pt (Postfix) with ESMTPSA id 96E37200862A for ; Tue, 12 Apr 2011 10:21:59 +0100 (WEST) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: internals@lists.php.net References: <4DA26602.6080303@lorenso.com> <20110411133657.GK7113@crousti> <4DA3468E.8000509@sugarcrm.com> <23.C1.24294.9CC43AD4@pb1.pair.com> <4DA415A4.9080607@sugarcrm.com> Date: Tue, 12 Apr 2011 10:21:58 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Organization: =?utf-8?Q?N=C3=BAcleo_de_Eng=2E_Biom=C3=A9di?= =?utf-8?Q?ca_do_I=2ES=2ET=2E?= Message-ID: In-Reply-To: <4DA415A4.9080607@sugarcrm.com> User-Agent: Opera Mail/11.01 (Win32) Subject: Re: [PHP-DEV] proposed access modifier "silent" ... was: Re: [PHP-DEV] Implicit isset/isempty check on short-ternary operator From: glopes@nebm.ist.utl.pt ("Gustavo Lopes") Em Tue, 12 Apr 2011 10:04:36 +0100, Stas Malyshev escreveu: >> It seems that there are no consensus about this feature so... >> >> *if in doubt, leave it out.* > > I don't see any serious objections to it except comments from people > that seem not really understand what this feature is about and complain > about "bad code" which has nothing to do with the actual feature > proposed. I am all for consensus, but I have very hard time accepting it > as a valid objection, sorry. I agree that argument is absurd... Even Freemarker, which is rather unforgiving with missing values (see http://freemarker.org/docs/app_faq.html#faq_picky_about_missing_vars ), provides this in the form unsafe_expr!default_expr. It's not about writing sloppy code, it's precisely the opposite -- identifying clearly and succinctly the regions where missing values are expected. -- Gustavo Lopes