Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61564 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42331 invoked from network); 20 Jul 2012 13:32:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jul 2012 13:32:39 -0000 Authentication-Results: pb1.pair.com smtp.mail=alex.aulbach@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=alex.aulbach@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.42 as permitted sender) X-PHP-List-Original-Sender: alex.aulbach@gmail.com X-Host-Fingerprint: 209.85.160.42 mail-pb0-f42.google.com Received: from [209.85.160.42] ([209.85.160.42:49541] helo=mail-pb0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 69/D2-18983-7FD59005 for ; Fri, 20 Jul 2012 09:32:39 -0400 Received: by pbbrp12 with SMTP id rp12so6694557pbb.29 for ; Fri, 20 Jul 2012 06:32:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=vIAEpL/DFBS8tG3e8fy2nO9pB+2h4L5+HeJeZ5AD2xQ=; b=oV0/UDjE80X8V/FzXkZPRbpBXaYetgNYzvPsKP+IDnRTZ71kNIGDRn5WETugl/IOey Kg0mYhjg1hs5It10hyg8Bca1+2RyiNPlHMXlVK35a8fGDwJxM/4Z1hxDPrFqnj4AkIuB bMWWiyKIKcEWdSApuV2p2pe5bkF/TckwKosQ0stuPGmullodY+PZHoQLMeb9HRIRyzN7 o0Vdr+oH0NyI40hnsc7IZlVjCWar1whGVVk1ko+0bkOeuSH9mXJpEDMbDlm+fF4pYNHM 2PkOxOh/g9cPffCFEARzb1BCEiSL56z4QFMSPmvovysLQ/RRpeeuOi/zDbwY87+ImA7M WDNg== MIME-Version: 1.0 Received: by 10.68.217.226 with SMTP id pb2mr13729482pbc.105.1342791156591; Fri, 20 Jul 2012 06:32:36 -0700 (PDT) Received: by 10.68.31.7 with HTTP; Fri, 20 Jul 2012 06:32:36 -0700 (PDT) In-Reply-To: <5007D707.2070100@hoa-project.net> References: <5007D707.2070100@hoa-project.net> Date: Fri, 20 Jul 2012 15:32:36 +0200 Message-ID: To: ivan.enderlin@hoa-project.net Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Make try/catch brackets optinal From: alex.aulbach@gmail.com (Alex Aulbach) Hi Ivan, > try > throw new Exception('foobar'); > catch(Exception $e) > var_dump($e->getMessage()); If you use try/catch that much, that you begin to think about the syntax, you have an architecture- or design-problem. PS: And if without brackets should be forbidden. -- Alex Aulbach