Re: Make try/catch brackets optinal
| From: | Alex Aulbach | Date: | Fri, 20 Jul 2012 13:32:36 +0000 |
| Subject: | Re: Make try/catch brackets optinal | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-61564@lists.php.net to get a copy of this message | ||
Hi Ivan,
> try
> throw new Exception('foobar');
> catch(Exception $e)
> var_dump($e->getMessage());
If you use try/catch that much, that you begin to think about the
syntax, you have an architecture- or design-problem.
PS: And if without brackets should be forbidden.
--
Alex Aulbach