I'm very well aware of the fact that catching 'Exception' has the same effect, but why require it when you don't care? Specifying a type indicates that you do want a specific type (alright, the least specific one, but not all people may know, especially Java people who have Throwable as superclass of Exception), where you don't actually need one. Leaving of the variable can help in finding unused variables. IDE's have excellent static analysis tools and will tell you about unused variables, so avoiding them in catch-statements when not used helps in making the analysis more robust. On 24 juni 2013 at 15:32:04, Sherif Ramadan ([email protected]) wrote:
|
-- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
