Re: AW: [PHP-DEV] Continued try blocks

From: Date: Mon, 29 Apr 2013 07:45:23 +0000
Subject: Re: AW: [PHP-DEV] Continued try blocks
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-67188@lists.php.net to get a copy of this message
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

« previous php.internals (#67188) next »