Re: Re: Are exceptions allowed in php core?
| From: | Stas Malyshev | Date: | Mon, 03 Sep 2012 21:54:27 +0000 |
| Subject: | Re: Re: Are exceptions allowed in php core? | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-62765@lists.php.net to get a copy of this message | ||
Hi!
> indicating such mental model is widespread and (2) given that the
> exceptions you claim to be surprising don't happen but for a programming
> error (i.e. they're not exceptions that need to be caught).
Following this logic, we'd have to convert all E_NOTICE and E_STRICT to
fatal errors or exceptions - they are usually produced by programming
errors and aren't meant to be caught by surrounding code (actually,
can't). But I don't see anybody benefiting from this - as I don't see
anybody benefiting from generator that will explode your application if
you touch it twice.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227