Re: Re: [Zend Engine 2] Type hints revisited [IllegalArgumentException instead of E_ERROR]

From: Date: Thu, 03 Apr 2003 00:22:35 +0000
Subject: Re: Re: [Zend Engine 2] Type hints revisited [IllegalArgumentException instead of E_ERROR]
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-642@lists.php.net to get a copy of this message
On Fri, 2003-03-28 at 15:03, Andi Gutmans wrote: > > Exceptions have a potential of leaking memory. I have mentioned in the past > that I wouldn't base my applications logic on exceptions but only use it in > error conditions to clean-up and/or give a nice message. You are talking > about using it as part of your application logic. If I can't use exceptions for application logic, why should I bother with using exceptions at all when there is trigger_error() and die()? Being able to control the flow of my code (that is application logic to me) is my main motivation for using exceptions in the first place. With all due respect Andi, I think adding exceptions to PHP and at the same time discouraging programmers to not use them to control program flow is a Bad Idea[tm]. - Stig

« previous php.internals (#642) next »