For instance, a library may throw an exception if some condition is not met, and you just try to call the method to see if it works, because you may not know the exact conditions (and these conditions may change). By allowing for an anonymous catch block there, you indicate that you really don't need to know anything about the exception, just that you'd like to recover from it. Phil's request was a little different, he asked for making the variable optional. I added support for both, but surely it can be decided that only the unnamed-catch is implemented. Both options are possible in C#. On 24 juni 2013 at 14:58:33, Sherif Ramadan ([email protected]) wrote:
|
-- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
