Re: RE: Announcing RFC 'Anonymous Catches'

From: Date: Tue, 25 Jun 2013 19:50:29 +0000
Subject: Re: RE: Announcing RFC 'Anonymous Catches'
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-67823@lists.php.net to get a copy of this message
Hi! > IMO actually it *makes* the code clearer, because $ignoredException is > not used, though a variable name like $ignored is self-explanatory, > too. It's not used by you - which btw is usually not a good idea - if you've got an exception, you usually should somehow react to it - at least log it or something, that's what the exceptions are for, if the situation does not require special handling it shouldn't be an exception. But it may be very useful for debugging, for example. Especially if somebody other than you looks at this code and tries to figure out what is going on. Removing vital information - like ability to see which exception was thrown - just to save 3 keystrokes - looks like a very misguided idea to me. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227

« previous php.internals (#67823) next »