Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61556 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25331 invoked from network); 20 Jul 2012 11:17:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jul 2012 11:17:38 -0000 Authentication-Results: pb1.pair.com header.from=ml@anderiasch.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=ml@anderiasch.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain anderiasch.de from 81.169.138.148 cause and error) X-PHP-List-Original-Sender: ml@anderiasch.de X-Host-Fingerprint: 81.169.138.148 ares.art-core.org Linux 2.5 (sometimes 2.4) (4) Received: from [81.169.138.148] ([81.169.138.148:44894] helo=mail.anderiasch.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 32/EF-18983-E4E39005 for ; Fri, 20 Jul 2012 07:17:34 -0400 Message-ID: <50093E49.2020305@anderiasch.de> Date: Fri, 20 Jul 2012 13:17:29 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120510 Icedove/10.0.4 MIME-Version: 1.0 To: ivan.enderlin@hoa-project.net CC: internals@lists.php.net References: <5007D707.2070100@hoa-project.net> <095CAA408DA94AFB9E75C12877A9043D@charliesomerville.com> <36467402DA0F4332A523162E3C278042@gmail.com> <500917C7.3050302@hoa-project.net> <500924A0.9080809@lsces.co.uk> <500926E6.2020403@hoa-project.net> In-Reply-To: <500926E6.2020403@hoa-project.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Make try/catch brackets optinal From: ml@anderiasch.de (Florian Anderiasch) On 07/20/2012 11:37 AM, Ivan P @ Hoa wrote: > On 20/07/12 11:28, Lester Caine wrote: >> Ivan Enderlin @ Hoa wrote: >>> Finally, I would like to clarify my proposal: I just wanted to >>> discuss about >>> making try/catch braces optional and not criticize PHP syntax… I don't see how making something worse because of consistency has any real benefit besides attacking a perceived problem of inconsistency. This might be me (quick poll on developers with sample size: 1), but in all the years of doing PHP/Java/x I hadn't even thought once of trying to use try/catch without braces. I can't even remember using if without braces. Greetings, Florian