Andi Gutmans wrote:
I don't think allowing the return of anything except for the object itself is *fixing* PHP.

No, being able to fail and return would not be fixing it. It would be extending it to allow people to avoid exceptions for this simple case.


For example, in the SOAP extension it is very useful that in the SoapServer you can throw an exception and that'll create a SOAP error. Any other value you return will be the SOAP result. This is a perfect place for exceptions.

I tempted to challenge you to give me an example usage which I could rewrite without exceptions, making it simpler and/or fixing problems ;-)


- Chris

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



Reply via email to