Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61565 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44599 invoked from network); 20 Jul 2012 13:51:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jul 2012 13:51:15 -0000 Authentication-Results: pb1.pair.com smtp.mail=contact@leo-peltier.fr; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=contact@leo-peltier.fr; sender-id=unknown Received-SPF: error (pb1.pair.com: domain leo-peltier.fr from 217.70.183.196 cause and error) X-PHP-List-Original-Sender: contact@leo-peltier.fr X-Host-Fingerprint: 217.70.183.196 relay4-d.mail.gandi.net Received: from [217.70.183.196] ([217.70.183.196:57056] helo=relay4-d.mail.gandi.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8D/33-18983-15269005 for ; Fri, 20 Jul 2012 09:51:14 -0400 X-Originating-IP: 217.70.178.139 Received: from mfilter10-d.gandi.net (mfilter10-d.gandi.net [217.70.178.139]) by relay4-d.mail.gandi.net (Postfix) with ESMTP id ECC561720AB for ; Fri, 20 Jul 2012 15:51:09 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter10-d.gandi.net Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by mfilter10-d.gandi.net (mfilter10-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id 5ZmuHUrZtIYo for ; Fri, 20 Jul 2012 15:51:08 +0200 (CEST) X-Policy: 91.121.82.37 is whitelisted X-Policy: 91.121.82.37 is whitelisted X-Originating-IP: 91.121.82.37 X-Policy: 91.121.82.37 is whitelisted Received: from [0.0.0.0] (ks26981.kimsufi.com [91.121.82.37]) (Authenticated sender: contact@leo-peltier.fr) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 89D6D172098 for ; Fri, 20 Jul 2012 15:51:08 +0200 (CEST) Message-ID: <5009624C.7040802@leo-peltier.fr> Date: Fri, 20 Jul 2012 15:51:08 +0200 Reply-To: contact@leo-peltier.fr User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0 MIME-Version: 1.0 To: internals@lists.php.net References: <5007D707.2070100@hoa-project.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Make try/catch brackets optinal From: contact@leo-peltier.fr (=?ISO-8859-1?Q?L=E9o_Peltier?=) > If you use try/catch that much, that you begin to think about the > syntax, you have an architecture- or design-problem. "Easier to ask for forgiveness than permission." That's one thing I like about python: exceptions everywhere. Much cleaner= than=20 having to use empty/isset/*_exists all the time. > PS: And if without brackets should be forbidden. Enforcing coding style should be forbidden. I never use brackets with 'if' if I don't have to because _I_ find it mor= e=20 readable, but I would never think about changing the language to make eve= ryone=20 use what I use (especially for such a trivial thing). --=20 L=E9o Peltier