Re: PHP 5.1
| From: | Ondrej Ivanič | Date: | Mon, 06 Jun 2005 14:36:14 +0000 |
| Subject: | Re: PHP 5.1 | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-16442@lists.php.net to get a copy of this message | ||
Ilia Alshanetsky wrote:
> Any feature can and as experience proves it to be the case, will be
> abused. Plenty of people make horrid abuse of exceptions, but we still
> went ahead an added them anyway since they have many practical and
> useful applications. Same is true for goto, some people will surely
> abuse it, but for many others it will be a very handy tool.
Huh...
Exceptions are for dealing with *errors*. In catch block I have this
choices:
1) re throw exception (= create high level exception)
2) show exception
... anything else is stupid.
--
Ondrej Ivanic
(ondrej@kmit.sk)