We had a .. bit of discussion on IRC about this. I will post my reply
soon, once I've had sufficient time to cool down.
-Andrei
On Apr 14, 2006, at 9:50 AM, Andi Gutmans wrote:
Amen.
At 09:40 AM 4/14/2006, Pierre wrote:
On 4/14/06, Dmitry Stogov <[EMAIL PROTECTED]> wrote:
> In general, exceptions as result of type conversion are good.
I disagree here, exceptions are... exceptions. That means they should
be used in rare cases. Unicode (and string manipulation in gerenal)
should not use exceptions. I see no cases which justify an exception.
> Half year ago we disabled exceptions in __toString() especially
because of
> this reason.
> I prefer disable exceptions for unicode conversions too.
Same here, and even if PHP will allow it. String manipulations
(unicode included) must remain a quiet and easy operation. This should
be a goal for each extensions, give a way to make PHP silent (by
default or not does not matter but it must be settable).
--Pierre
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php