Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61550 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10466 invoked from network); 20 Jul 2012 09:37:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jul 2012 09:37:47 -0000 Authentication-Results: pb1.pair.com header.from=ivan.enderlin@hoa-project.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=ivan.enderlin@hoa-project.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain hoa-project.net from 95.130.12.24 cause and error) X-PHP-List-Original-Sender: ivan.enderlin@hoa-project.net X-Host-Fingerprint: 95.130.12.24 host1.trois-doubles.net Linux 2.6 Received: from [95.130.12.24] ([95.130.12.24:38725] helo=host1.trois-doubles.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 01/0D-18983-9E629005 for ; Fri, 20 Jul 2012 05:37:46 -0400 Received: from Hwhost2.local (241-68.77-83.cust.bluewin.ch [83.77.68.241]) by host1.trois-doubles.net (Postfix) with ESMTPA id CBA9F2079FA for ; Fri, 20 Jul 2012 11:37:42 +0200 (CEST) Message-ID: <500926E6.2020403@hoa-project.net> Date: Fri, 20 Jul 2012 11:37:42 +0200 Reply-To: ivan.enderlin@hoa-project.net User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:15.0) Gecko/20120715 Thunderbird/15.0a2 MIME-Version: 1.0 To: 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> In-Reply-To: <500924A0.9080809@lsces.co.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Make try/catch brackets optinal From: ivan.enderlin@hoa-project.net ("Ivan Enderlin @ Hoa") 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=20 >> discuss about >> making try/catch braces optional and not criticize PHP syntax=E2=80=A6= > > The problem here is rather, could we make brackets compulsory=20 > everywhere? No because of BC problems, but this might be the preferred = > approach by many. So adding another possible bug creating area does=20 > not seem appropriate? Not everywhere :-). All I have pointed out here is adding consistency to = control structures, because they are the only language constructions=20 impacted by optional brackets. I very well understand that spreading optional brackets to the entire=20 langage is not a good idea. I have never mentioned this possibility. Cheers. --=20 Ivan Enderlin Developer of Hoa http://hoa.42/ or http://hoa-project.net/ PhD. student at DISC/Femto-ST (Vesontio) and INRIA (Cassis) http://disc.univ-fcomte.fr/ and http://www.inria.fr/ Member of HTML and WebApps Working Group of W3C http://w3.org/