Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67188 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9293 invoked from network); 29 Apr 2013 14:51:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Apr 2013 14:51:11 -0000 Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.211.66 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.211.66 config.schlueters.de Received: from [217.114.211.66] ([217.114.211.66:35285] helo=config.schlueters.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F6/11-00193-ED88E715 for ; Mon, 29 Apr 2013 10:51:11 -0400 Received: from [192.168.2.20] (ppp-88-217-80-242.dynamic.mnet-online.de [88.217.80.242]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by config.schlueters.de (Postfix) with ESMTPSA id D48EE65615; Mon, 29 Apr 2013 09:44:00 +0200 (CEST) To: Robert Stoll Cc: 'PHP Internals' In-Reply-To: <000301ce4377$8201ac40$860504c0$@tutteli.ch> References: <170891005.EmXIrsICLC@rofl> <000301ce4377$8201ac40$860504c0$@tutteli.ch> Content-Type: text/plain; charset="UTF-8" Date: Mon, 29 Apr 2013 09:45:23 +0200 Message-ID: <1367221523.2723.196.camel@guybrush> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit Subject: Re: AW: [PHP-DEV] Continued try blocks From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) On Sat, 2013-04-27 at 19:46 +0100, Robert Stoll wrote: > I agree with Amaury. > Although, it is rather smelly code to use try/catch as control flow > instrument, in some situations it is clearer to do it this way. > I think the new construct would be especially useful if one just wants to > log errors (no further exception handling is necessary) as shown in previous > examples. Logging is a different thing from error handling. exceptions are a tool to handle (exceptional critically?) error situations. johannes