On Tue, 13 Apr 2004, Marcus Boerger wrote:

Hello Marcus --

> This brings us back to an old problem the severity levels are inconsistent.
> And further more we decided some time back that E_ERRORs shouldn't be
> converted to exceptions because of a few E_ERRORs that might not be
> continuable. From my point of view we should do two things:
> 1) convert the non continuable E_ERRORs to a higher severity (if there are
>    any at all)

Is there a reason not to move non-continuable E_ERRORs to E_WARNINGs?
This prevents us from adding another severity level and also allows us
to make all E_ERRORs fatal in the process.

> 2) Use exceptions when a ctor needs to advertise its failure and in other
>    places where exceptions are really usefull.
>
> Too much exception is a bad thing anyway.

There's so much anti-exception sentiment on this list, I wonder how
they ever made it into PHP 5 in the first place. :)

But, seriously, besides for ctors, when do people here expect
developers to use exceptions?

-adam

-- 
[EMAIL PROTECTED]
author of o'reilly's php cookbook
avoid the holiday rush, buy your copy today!

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to